SetPedOnFire: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Added OOP syntax)
Line 7: Line 7:
bool setPedOnFire ( ped thePed, bool isOnFire )
bool setPedOnFire ( ped thePed, bool isOnFire )
</syntaxhighlight>  
</syntaxhighlight>  
{{OOP||[[ped]]:setOnFire|onFire|isPedOnFire}}


===Required Arguments===  
===Required Arguments===  

Revision as of 17:47, 26 November 2014

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

Syntax

bool setPedOnFire ( ped thePed, bool isOnFire )

OOP Syntax Help! I don't understand this!

Method: ped:setOnFire(...)
Variable: .onFire
Counterpart: isPedOnFire


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