IsPedOnFire
From Multi Theft Auto: Wiki
This function checks if the specified ped is on fire or not.
Syntax
bool isPedOnFire ( ped thePed )
OOP Syntax Help! I don't understand this!
- Method: ped:isOnFire(...)
- Variable: .onFire
- Counterpart: setPedOnFire
Required Arguments
- thePed: The ped to check.
Returns
Returns true if the ped is on fire, false otherwise.
Example
Click to collapse [-]
ServerThis example checks if a random player is on fire, and if so gives him a fire extinguisher.
local randomPlayer = getRandomPlayer() if isPedOnFire ( randomPlayer ) then giveWeapon ( randomPlayer, 42, 100, true ) end
See Also
- addPedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedClothes
- getPedContactElement
- getPedFightingStyle
- getPedGravity
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- reloadPedWeapon
- removePedClothes
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedChoking
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedGravity
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot