SetObjectMoveTo: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetObjectMoveTo(object, x, y, z [, speed])}} {{FuncParameters}} {{FuncParam|object|__EDIT_ME__}} {..." |
FlyingFork (talk | contribs) No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the object to move to the specified coordinates.}} | ||
{{FuncSyntax|SetObjectMoveTo(object, x, y, z [, speed])}} | {{FuncSyntax|SetObjectMoveTo(object, x, y, z [, speed])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier.}} | ||
{{FuncParam|x| | {{FuncParam|x|The X axis}} | ||
{{FuncParam|y| | {{FuncParam|y|The Y axis}} | ||
{{FuncParam|z | | {{FuncParam|z|The Z axis}} | ||
{{FuncParamOptional|speed| | {{FuncParamOptional|speed|The speed as a floating point number. (Centimeter per second)}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
SetObjectMoveTo(object, 100, 100, 100, 2) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:ObjectFunctions}} |
Latest revision as of 14:32, 26 June 2021
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
- 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