I am working on my first hack useing my own base, but that is not what I'm actually here to ask, I want to add a teleport feature and i was wondering if there is a way to get the player position like something like:

Code:
PushToConsole("PlayerPositionX 0");
PushToConsole("PlayerPositionY 0");
PushToConsole("PlayerPositionZ 0");
Is there even a ptc command for this, or is there a different way?

If so how would I "Get" the value and save it to an intiger or float?