SetObjectScale: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{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|__EDIT_ME__}}
{{FuncParam|object|The object identifier}}
{{FuncParam|sx|__EDIT_ME__}}
{{FuncParam|sx|The scale X axis}}
{{FuncParam|sy|__EDIT_ME__}}
{{FuncParam|sy|The scale Y axis}}
{{FuncParam|sz|__EDIT_ME__}}
{{FuncParam|sz|The scale Z axis}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetObjectScale(objectId, 10.0, 10.0, 10.0)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:ObjectsFunctions}}
{{Template:ServerObjectFunctions}}

Latest revision as of 18:19, 30 August 2020

SetObjectScale

Type: Function
Context: Server
Introduced: v1.0

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