GetAllNPC: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetAllNPC()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example == _..."
 
28days (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Gets all the NPC IDs in a table.}}


{{FuncSyntax|GetAllNPC()}}
{{FuncSyntax|GetAllNPC()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns a table with a list of NPC IDs.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local _npc = GetAllNPC()
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{NPCFunctions}}

Latest revision as of 18:56, 19 December 2019

GetAllNPC

Type: Function
Context: Server
Introduced: v1.0

Description

Gets all the NPC IDs in a table.

Syntax

GetAllNPC()

Parameters

  • This function has no parameters.

Return Value

  • Returns a table with a list of NPC IDs.

Example

local _npc = GetAllNPC()

See also