Difference between revisions of "Getpos"
m (→setpos and setang: .) |
m (Added the page to the category 'Console Commands') |
||
Line 14: | Line 14: | ||
*<code>setpos_exact</code> will automatically enable <code>noclip</code> if moving to a position that would make the player become stuck inside something or when teleporting outside of the map. Entities such as triggers, children and even the player entity itself will acknowledge when this command is used and may react to its use, unlike <code>setpos</code>. | *<code>setpos_exact</code> will automatically enable <code>noclip</code> if moving to a position that would make the player become stuck inside something or when teleporting outside of the map. Entities such as triggers, children and even the player entity itself will acknowledge when this command is used and may react to its use, unlike <code>setpos</code>. | ||
*<code>setang_exact</code> works basically the same. Entities such as triggers, children and even the player entity itself will acknowledge when this command is used and may react to its use, unlike <code>setang</code>. | *<code>setang_exact</code> works basically the same. Entities such as triggers, children and even the player entity itself will acknowledge when this command is used and may react to its use, unlike <code>setang</code>. | ||
+ | |||
+ | [[Category: Console Commands]] |
Latest revision as of 03:09, 24 May 2020
getpos
is a console command that prints the player's position and view angle in the console in XYZ tuples.
A typical output looks like this:
setpos 8415.820313 -5248.870117 320.000000;setang -70.642090 71.564941 0.000000
setpos and setang
The setpos
and ;setang
parts in the output above are for convenience; these are also console commands, used for setting the player position and viewing angle. This lets the user copy the entire output line and paste it back into the console if they want to go to that exact spot again.

setpos
you may need to enable noclip
to get to a position that would make the player become stuck inside something or when teleporting outside of the map.These two commands also have _exact
variations.
setpos_exact
will automatically enablenoclip
if moving to a position that would make the player become stuck inside something or when teleporting outside of the map. Entities such as triggers, children and even the player entity itself will acknowledge when this command is used and may react to its use, unlikesetpos
.setang_exact
works basically the same. Entities such as triggers, children and even the player entity itself will acknowledge when this command is used and may react to its use, unlikesetang
.