SetElementOnFire

From Multi Theft Auto: Wiki
Revision as of 03:11, 31 December 2024 by FileEX (talk | contribs) (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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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