Entity::position: Difference between revisions
MrPancakers (talk | contribs) m (→See Also) |
mNo edit summary |
||
| Line 8: | Line 8: | ||
== Example == | == Example == | ||
{{ | {{ServerSideCode| | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
const playerPos = player.position | const playerPos = player.position | ||
| Line 14: | Line 14: | ||
player.position = new mp.Vector3(0.0, 0.0, 72.0); | player.position = new mp.Vector3(0.0, 0.0, 72.0); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | |||
==See Also== | ==See Also== | ||
{{Entity_definition}} | {{Entity_definition}} | ||
[[Category:Entity API]] | |||
[[Category:Server-side Property]] | |||
[[Category:Client-side Property]] | |||
Revision as of 10:18, 30 April 2019
This property gets/sets the entity position.
Getter
- Vector3
Setter
- Vector3