UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: DeletedUser on August 06, 2013, 06:13:28 pm

Title: Teleporters
Post by: DeletedUser on August 06, 2013, 06:13:28 pm
So I want to put teleporters in my map. The first one will just teleport to chosen target and I want the second one to be Kino style. Can someone help me with that?
Title: Re: Teleporters
Post by: SajeOne on August 06, 2013, 09:46:50 pm
Well as for the one that just teleports you. The way I would personally do it is you either need to hit a trigger use or trigger multiple and then in script use the setorigin (http://www.zeroy.com/script/player/setorigin.htm) function to change the players origin(position) to either a struct you place on the maps origin or just a vector. The kino style one is a little more complicated, I would first look around for former UGX member Aidan's(Addicted's) kino style teleporter script that he released for the public to use. If you know a map that uses it you could rip the script out of(Not really stealing as the script is for everyone to use(if you were wondering)).
Title: Re: Teleporters
Post by: DeletedUser on August 07, 2013, 08:00:12 am
The problem is i dont knoe how to call something on a player.
Title: Re: Teleporters
Post by: SajeOne on August 07, 2013, 08:01:54 am
The problem is i dont knoe how to call something on a player.
var = GetPlayers();
gets the array of players.