GetAllObjects: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Returns existing object ids in a table. If you have ten thousands of objects then don't call this too often.}} {{FuncSyntax|Ge..." |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0.3}} | ||
{{FuncDescription|Returns existing object ids in a table. If you have ten thousands of objects then don't call this too often.}} | {{FuncDescription|Returns existing object ids in a table. If you have ten thousands of objects then don't call this too often.}} | ||
Line 16: | Line 16: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{ObjectFunctions}} |
Latest revision as of 09:47, 20 January 2020
Description
Returns existing object ids in a table. If you have ten thousands of objects then don't call this too often.
Syntax
GetAllObjects()
Parameters
- This function has no parameters.
Return Value
- Returns a table with a list of all object ids.
Example
local objects = GetAllObjects()
See also
- CreateObject
- DestroyObject
- IsValidObject
- GetObjectCount
- GetObjectModel
- IsObjectStreamedIn
- EnableObjectStreamEvents
- SetObjectStreamDistance
- SetObjectLocation
- GetObjectLocation
- SetObjectRotation
- GetObjectRotation
- SetObjectScale
- GetObjectScale
- SetObjectAttached
- SetObjectDetached
- IsObjectAttached
- GetObjectAttachmentInfo
- IsObjectMoving
- SetObjectMoveTo
- StopObjectMove
- SetObjectRotateAxis
- GetObjectModelCount
- GetObjectMass
- GetStreamedObjects
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- SetObjectEditable
- SetObjectOutline
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture
- SetObjectCastShadow
- SetObjectDimension
- GetObjectActor
- GetAllObjects
- SetObjectModel