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

Fire::startScriptFire

Материал из RAGE MP Wiki Archive
Версия от 04:06, 28 сентября 2021; imported>SugarD-x ("TODO: Example" category no longer needed.)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Starts a fire:

xyz: Location of fire
maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.
isGasFire: Whether or not the fire is powered by gasoline.

Syntax

mp.game.fire.startScriptFire(X, Y, Z, maxChildren, isGasFire);

Required Arguments

  • X: float
  • Y: float
  • Z: float
  • maxChildren: int
  • isGasFire: Boolean

Return value

  • int

Example

Client-Side
mp.events.add('StartFire', (posX, posY, posZ, maxChildren, isGasFire) => {
    // The fireId is a int
    let fireId = mp.game.fire.startScriptFire(posX, posY, posZ, maxChildren, isGasFire);
});

See also

Шаблон:Fire s function c