GetObjectLocation: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Returns the object's XYZ location.}} | ||
{{FuncSyntax|GetObjectLocation(object)}} | {{FuncSyntax|GetObjectLocation(object)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|The XYZ vector of the object.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
local x, y, z = GetPlayerLocation(objectid) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} |
Revision as of 16:01, 19 November 2019
Description
Returns the object's XYZ location.
Syntax
GetObjectLocation(object)
Parameters
- object
The object identifier.
Return Value
- The XYZ vector of the object.
Example
local x, y, z = GetPlayerLocation(objectid)
See also
- SetObjectLocation
- GetObjectCount
- GetObjectModelCount
- GetObjectModelGroup
- GetObjectModelName
- GetStreamedObjects
- GetObjectModel
- GetObjectRotation
- GetObjectScale
- GetObjectBoundingBox
- GetObjectSize
- EnableObjectHitEvents
- GetObjectMass
- SetObjectEditorSpeed
- SetObjectEditable
- SetObjectOutline
- SetObjectCastShadow
- SetObjectColor
- SetObjectEmissiveColor
- SetObjectAnimatedTexture