Get coord of player
From Unofficial QEdit Wiki Guide
Contents
Syntax
Syntax: get_coord_of_player register 1, register 2
- register 1 = Start of continuous registers (3 xyz) to store the coordinates in.
- register 2 = Contains the value of the slot number of the player to get the coordinates from.
Use
Gets the coordinates from the slot number value stored in register 2 and stores them in 3 registers starting with register 1.
Example
100: leti R249, 00000000 //Makes register 249 equal 00000000. For the red gem player.
get_coord_of_player R244, R249 //Gets the X/Y/Z position of the red gem player and stores them in registers 244(x), 245(y), 246(z).
ret