SetPedOnFire: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 23: Line 23:
==See Also==
==See Also==
{{Ped functions}}
{{Ped functions}}
[[ru:setPedOnFire]]

Revision as of 18:10, 8 July 2010

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