GetStreamedObjects: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
{{FuncParamOptional|bGetAttached|Get the attached objects}} | {{FuncParamOptional|bGetAttached|Get the attached objects}} | ||
{{FuncReturnValue|Returns a table with streamed in | {{FuncReturnValue|Returns a table with streamed in object 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}} |
Latest revision as of 15:53, 8 January 2021
Description
Gets the streamed in objects for the local player.
Syntax
GetStreamedObjects( [, bGetAttached])
Parameters
- bGetAttached (optional)
Get the attached objects
Return Value
- Returns a table with streamed in object identifiers as values.
Example
for k, v in pairs(GetStreamedNPC()) do
AddPlayerChat("Table key "..k..": npcid: "..v)
end
See also
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture