How to capture Ego's X/Y into a variable?

DaLeroy Hi guys

I'm trying to capture Ego's X or Y position into a variable, so that when I switch rooms, I can position him at his old X or Y position. I tried:

(= OldY Ego:y) but that doesn't work :P (OldY being my variable)

Anyone know what the correct code is?


Eigen = OldY (send gEgo:y)
= OldX (send gEgo:x)


DaLeroy Thanks for that! Works to sort my dodgy code out :)