GetNPCDimension: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Gets the dimension of this npc.}} {{FuncSyntax|GetNPCDimension(npc)}} {{FuncParameters}} {{FuncParam|npc|The npc identifier.}..." |
FlyingFork (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
print("NPC Dimension: " .. GetNPCDimension(npcid)) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:NPCFunctions}} |
Latest revision as of 14:23, 26 June 2021
Description
Gets the dimension of this npc.
Syntax
GetNPCDimension(npc)
Parameters
- npc
The npc identifier.
Return Value
- Returns the dimension.
Example
print("NPC Dimension: " .. GetNPCDimension(npcid))
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