element.position: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
 
No edit summary
Line 8: Line 8:
|usage = fetch or set the 3D position for a transformable
|usage = fetch or set the 3D position for a transformable
|returnInfo = a Vec3 containing the position of the transformable
|returnInfo = a Vec3 containing the position of the transformable
|notes = Due to a sync limitation, a network event (sent to the player's client) is required to change the position of a player element. See [[triggerNetworkEvent|triggerNetworkEvent]] and [[addNetworkHandler|addNetworkHandler]] for info on using network events.
}}
}}

Revision as of 17:52, 20 April 2021

Property Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read and Set

Available since Server 1.0.0, Client 1.0.0

Vec3 transformable.position

The transformable.position property is used to fetch or set the 3D position for a transformable.

Value

Vec3 A Vec3 containing the position of the transformable.
read/set This property can be changed, as well as read.

Types

Client Transformable

Notes

  • Due to a sync limitation, a network event (sent to the player's client) is required to change the position of a player element. See triggerNetworkEvent and addNetworkHandler for info on using network events.

Examples

There aren't any examples for this property.

Compatibility

There isn't any compatibility information for this property.