- Documentation
- Server functions
- setElementOnFire
Function
setElementOnFire
Sets an element on fire or puts it out. With a duration in milliseconds the fire goes out by itself.
Syntax
bool setElementOnFire(element theElement, bool burning [, int duration = bez limitu])Arguments
theElementelement- The element.
burningbooltruesets on fire.durationint, optional = bez limitu- Duration in milliseconds.Not in MTA:SA
Differences from MTA:SA
- Arguments in a different colour differ from MTA:SA.
In MTA:SA
setElementOnFire(element theElement, bool isOnFire)Returns
true on success.
Example
setElementOnFire(player, true, 5000)