SetObjectMoveTo: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
{{FuncParam|x|The X axis}}
{{FuncParam|x|The X axis}}
{{FuncParam|y|The Y axis}}
{{FuncParam|y|The Y axis}}
{{FuncParam|z |The Z axis}}
{{FuncParam|z|The Z axis}}
{{FuncParamOptional|speed|The speed in floating point.}}
{{FuncParamOptional|speed|The speed as a floating point number. (Centimeter per second)}}


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


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
SetObjectMoveTo(object, 100, 100, 100, 2)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:ObjectFunctions}}
{{Template:ObjectFunctions}}

Latest revision as of 14:32, 26 June 2021

SetObjectMoveTo

Type: Function
Context: Server
Introduced: v1.0

Description

Set the object to move to the specified coordinates.

Syntax

SetObjectMoveTo(object, x, y, z [, speed])

Parameters

  • object
    The object identifier.
  • x
    The X axis
  • y
    The Y axis
  • z
    The Z axis
  • speed (optional)
    The speed as a floating point number. (Centimeter per second)

Return Value

  • Returns true on success.

Example

SetObjectMoveTo(object, 100, 100, 100, 2)

See also