GetObjectSize: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Returns size of the bounding box. (Maximum point - minimum point)}} | ||
{{FuncSyntax|GetObjectSize(object)}} | {{FuncSyntax|GetObjectSize(object)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier.}} | ||
{{FuncReturnValue|Returns 3 floats containing the size of this objects model in all 3 dimensions.}} | {{FuncReturnValue|Returns 3 floats containing the size of this objects model in all 3 dimensions.}} | ||
== Example == | == Example == | ||
[https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/master/mapeditor/client/editor.lua#L183 See example from the map editor on GitHub.] | |||
{{RelatedFunctions}} | {{RelatedFunctions}} |
Revision as of 11:26, 2 November 2020
Description
Returns size of the bounding box. (Maximum point - minimum point)
Syntax
GetObjectSize(object)
Parameters
- object
The object identifier.
Return Value
- Returns 3 floats containing the size of this objects model in all 3 dimensions.
Example
See example from the map editor on GitHub.
See also
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectLocation
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectTexture
- SetObjectAnimatedTexture