Перейти к содержанию

Fire::addExplosion

Материал из RAGE MP Wiki Archive

Creates an explosion at given coords. This function is missing last argument, so you cant create explosion with damage.

Syntax

<syntaxhighlight lang="javascript">mp.game.fire.addExplosion(x, y, z, explosionType, damageScale, isAudible, isInvisible, cameraShake);</syntaxhighlight>

Required Arguments

  • x: float
  • y: float
  • z: float
  • explosionType: int
  • damageScale: float
  • isAudible: Boolean (Trigger explosion sound)
  • isInvisible: Boolean (Trigger visibility)
  • cameraShake: float

Return value

  • Undefined

Example

Client-Side

See also

Шаблон:Fire s function c