GetStreamedNPC: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetStreamedNPC()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example..." |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Get the streamed NPC identifiers in a table.}} | ||
{{FuncSyntax|GetStreamedNPC()}} | {{FuncSyntax|GetStreamedNPC()}} | ||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns a table with the streamed in NPC identifiers as values.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
for k, v in pairs(GetStreamedNPC()) do | |||
AddPlayerChat("Table key "..k..": npcid: "..v) | |||
end | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{NPCFunctions}} |
Latest revision as of 15:52, 8 January 2021
Description
Get the streamed NPC identifiers in a table.
Syntax
GetStreamedNPC()
Parameters
- This function has no parameters.
Return Value
- Returns a table with the streamed in NPC identifiers as values.
Example
for k, v in pairs(GetStreamedNPC()) do
AddPlayerChat("Table key "..k..": npcid: "..v)
end
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