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?

Thanks

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


-Eigen

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