SetPedOnFire

From Multi Theft Auto: Wiki
Revision as of 16:11, 12 September 2008 by Ryden (talk | contribs) (New page: __NOTOC__ {{Server function}} This function can be used to set a ped on fire or extinguish a fire on it. ==Syntax== <syntaxhighlight lang="lua"> bool setPedOnFire ( ped thePed, bool isOnFire ) </syntaxhighlight> ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function can be used to set a ped on fire or extinguish a fire on it.

Syntax

bool setPedOnFire ( ped thePed, bool isOnFire )

Required Arguments

  • thePed: The ped that we want to set/unset
  • isOnFire: true to set the ped on fire, false to extinguish any fire on him

Returns

Returns true if successful, false otherwise

Example

This script will make all current connected players and peds to burn

    setPedOnFire ( getRootElement(), true)

See Also