Quote: --- Original message by: Shock120
vehicle teleporter. :)
Other kind? (the one where the vehicle itself is teleported rather than carrying the teleporter)
It would be the same script, just vehicles listed instead of players.
(script continuous tele
(if (< (objects_distance_to_object warthog1 tele1) 1)
(objects_attach tele2 "" warthog1 "")
(objects_detach tele2 warthog1)
(sleep_until (> (objects_distance_to_object warthog1 tele2) 1) 1)
(if (< (objects_distance_to_object warthog1 tele2) 1)
(objects_attach tele1 "" warthog1 "")
(objects_detach tele1 warthog1)
(sleep_until (> (objects_distance_to_object warthog1 tele1) 1) 1)
This uses the movement varient from the portable portals (meaning 1 script per vehicle just so you can insure they don't teleport back and forth. you can put all vehicles in one script if you remove the sleep_until, but it makes it more chaotic as if the other sleep is to low, they might get stuck in a teleporting loop)
EDIT: wtf? where did have the script go when I clicked post?..
EDIT2: seems to of stayed this time.. lets hope it stays after I do this edit... (if it doesn't, im just gonna upload it elsewhere lol)Edited by kirby_422 on Jun 16, 2011 at 03:27 PM