Hello
Im creating an Admin Room on my Map. Iv currently created a Button that makes everybody Teleport to a Certain Place.
I was Wondering is it Possible to Save Somebody's Origin on Teleport so when they Click another Button they get back to where they was Before they Got Teleported.
Im Guessing this is Possible, But dont know How to do it.
Thanks
CODUO Origin's.
Moderator: Core Staff
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: CODUO Origin's.
well isn't that hard
Code: Select all
save position of the player in a variable
...
player.oldPosition = player.origin;
player.oldAngles = player.angles;
...
here to set the player back to his old position
...
if(isDefined(player.oldPosition) && isDefined(player.oldAngles)){
player setOrigin(player.oldPosition);
player setAngles(player.oldAngles);
}
...
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
Re: CODUO Origin's.
Ok Thanks!
Who is online
Users browsing this forum: No registered users and 26 guests