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.}...")
 
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
print("NPC Dimension: " .. GetNPCDimension(npcid))
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:NPCFunctions}}

Latest revision as of 14:23, 26 June 2021

GetNPCDimension

Type: Function
Context: Server
Introduced: v1.0

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