ok this is easy
in sapain you have to set up a trigger voulme named "
secret-tele-entry" and then set up a flag called "
secret-tele-exit" nad a vehicle called "
secret-tele-test" this vehicle is set to the game type of oddball only.
secret-tele-entry is where you wont to teleport from
secret-tele-exit is where you wont to teleport to
secret-tele-test this is a vehicle that is only used to check game type at the start of the game so just set it up as if you wont to use it in game
here is the script
(global short player 0)
(global short can-teleport 1)
(script startup check-tele
(begin
(sleep 200)
(if (= (unit_get_health secret-tele-test) 1)
(begin
(set can-teleport 0)
)
)
)
)
(script continuous secret-tele
(begin
(if
(and
(= (volume_test_object secret-tele-entry (list_get (players) player)) true)
(= can-teleport 1)
)
(begin
(object_teleport (list_get (players) player) secret-tele-exit)
)
)
(set player (+ player 1))
(if (= (> player 15) true)
(begin
(set player 0)
)
)
)
)
this scrit still has a wee bug in it and that is that it dosent play the teteport sound when player get teleported but that should be easy to do
Edited by killer kiwi on Feb 28, 2008 at 06:08 PM