Entity::position: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
Line 2: Line 2:


==Getter==
==Getter==
* '''<span style="color:#008017">Vector3</span>'''
* {{RageType|Vector3}}
 
==Setter==
==Setter==
* '''<span style="color:#008017">Vector3</span>'''
* '''<span style="color:#008017">Vector3</span>'''

Revision as of 17:15, 27 December 2017

This property is the position of a player.

Getter

  • Vector3

Setter

  • Vector3

Example

Server-Side
const playerPos = player.position
console.log(playerPos) // return e.g. {x: 1337, y: 228, z: 70}
player.position = new Vector3(0.0, 0.0, 72.0);

See Also