SetObjectScale: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetObjectScale(object, sx, sy, sz)}} {{FuncParameters}} {{FuncParam|object|__EDIT_ME__}} {{FuncPar..." |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set's the size scaling of the object.}} | ||
{{FuncSyntax|SetObjectScale(object, sx, sy, sz)}} | {{FuncSyntax|SetObjectScale(object, sx, sy, sz)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier}} | ||
{{FuncParam|sx| | {{FuncParam|sx|The scale X axis}} | ||
{{FuncParam|sy| | {{FuncParam|sy|The scale Y axis}} | ||
{{FuncParam|sz| | {{FuncParam|sz|The scale Z axis}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetObjectScale(objectId, 10.0, 10.0, 10.0) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:ServerObjectFunctions}} |
Latest revision as of 18:19, 30 August 2020
Description
Set's the size scaling of the object.
Syntax
SetObjectScale(object, sx, sy, sz)
Parameters
- object
The object identifier - sx
The scale X axis - sy
The scale Y axis - sz
The scale Z axis
Return Value
- Returns true on success.
Example
SetObjectScale(objectId, 10.0, 10.0, 10.0)
See also
- SetObjectDimension
- GetObjectDimension
- SetObjectPropertyValue
- GetObjectPropertyValue
- CreateObject
- DestroyObject
- IsValidObject
- GetObjectCount
- SetObjectModel
- GetObjectModel
- IsObjectStreamedIn
- EnableObjectStreamEvents
- SetObjectStreamDistance
- SetObjectLocation
- GetObjectLocation
- SetObjectRotation
- GetObjectRotation
- SetObjectScale
- GetObjectScale
- SetObjectAttached
- SetObjectDetached
- IsObjectAttached
- GetObjectAttachmentInfo
- IsObjectMoving
- SetObjectMoveTo
- StopObjectMove
- SetObjectRotateAxis
- GetAllObjects