SetNPCHealth
From Onset Developer Wiki
Description
Set the NPC health.
Syntax
SetNPCHealth(npc, health)
Parameters
- npc
The NPC identifier. - health
The health in floating point value.
Return Value
- This function returns nothing.
Example
SetNPCHealth(npcid, 100.0)
See also
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime