GetObjectLocation

From Onset Developer Wiki
Revision as of 16:01, 19 November 2019 by 28days (talk | contribs)
GetObjectLocation

Type: Function
Context: Server & Client
Introduced: v1.0

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