GetNPCPropertyValue
From Onset Developer Wiki
Description
Gets a property value for this entity.
Syntax
GetNPCPropertyValue(npc, PropertyName)
Parameters
- npc
The npc identifier - PropertyName
Name of the property variable
Return Value
- Returns the value.
Example
print("NPC Name: " .. GetNPCPropertyValue(npc, "npc:name"))
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