GetStreamedNPC: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue|Returns a table with streamed in NPC identifiers.}} | {{FuncReturnValue|Returns a table with the streamed in NPC identifiers as values.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
for k, v in pairs(GetStreamedNPC()) do | |||
AddPlayerChat("Table key "..k..": npcid: "..v) | |||
end | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{NPCFunctions}} | {{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