Fire::startScriptFire: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Starts a fire:<br><br>xyz: Location of fire<br>maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.<br>isGasFire: Whether or not the fire is powered by gasoline. | Starts a fire:<br><br>xyz: Location of fire<br>maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.<br>isGasFire: Whether or not the fire is powered by gasoline. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">fire.startScriptFire(X, Y, Z, maxChildren, isGasFire);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.fire.startScriptFire(X, Y, Z, maxChildren, isGasFire);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''X:''' float | *'''X:''' float | ||
| Line 12: | Line 12: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Fire_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:06, 6 May 2017
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
// todo