SetObjectDimension: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Sets the dimension of this object. Players can only see objects in the same dimension. * Default dimension: 0 * Maximum dimens..." |
No edit summary |
||
Line 11: | Line 11: | ||
{{FuncParam|dimension|The new dimension to set.}} | {{FuncParam|dimension|The new dimension to set.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetObjectDimension(objectId, 1) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ObjectFunctions}} |
Latest revision as of 09:21, 14 December 2019
Description
Sets the dimension of this object. Players can only see objects in the same dimension.
- Default dimension: 0
- Maximum dimension: 4294967295
Syntax
SetObjectDimension(object, dimension)
Parameters
- object
The object identifier. - dimension
The new dimension to set.
Return Value
- Returns true on success.
Example
SetObjectDimension(objectId, 1)
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