SetElementOnFire: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Shared function}} {{New feature/item|3.0161|1.6.0|22864| This function can be used to set a element on fire or extinguish a fire on it. Supported types are ped, vehicle and object.}} ==Syntax== <syntaxhighlight lang="lua"> bool setElementOnFire ( element theElement, bool isOnFire ) </syntaxhighlight> {{OOP||element:setOnFire|onFire|isElementOnFire}} ===Required Arguments=== *'''theElement:''' The element that we want to set/unset....")
 
Line 21: Line 21:


==See Also==
==See Also==
{{Ped functions}}
{{Element functions}}

Revision as of 03:12, 31 December 2024

ADDED/UPDATED IN VERSION 1.6.0 r22864:
This function can be used to set a element on fire or extinguish a fire on it. Supported types are ped, vehicle and object.

Syntax

bool setElementOnFire ( element theElement, bool isOnFire )

OOP Syntax Help! I don't understand this!

Method: element:setOnFire(...)
Variable: .onFire
Counterpart: isElementOnFire


Required Arguments

  • theElement: The element that we want to set/unset.
  • isOnFire: true to set the element on fire, false to extinguish any fire on it.

Returns

Returns true if successful, false otherwise

Example

Accessories-text-editor.png Script Example Missing Function SetElementOnFire needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also