SetPedOnFire: Difference between revisions
Jump to navigation
Jump to search
(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> ...) |
m (→Example) |
||
Line 18: | Line 18: | ||
This script will make all current connected players and peds to burn | This script will make all current connected players and peds to burn | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
setPedOnFire ( getRootElement(), true) | setPedOnFire ( getRootElement(), true ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Ped functions}} | {{Ped functions}} |
Revision as of 16:12, 12 September 2008
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
- addPedClothes
- getPedClothes
- removePedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedFightingStyle
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getPedContactElement
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle