Page 1 of 1

Entering region forces units into vehicles Q....

Posted: Sat Mar 22, 2008 2:27 am
by Fingerfood
I read the two topics on this in the Everything you Need thread, but from what I read, (I didn't read everything)it wasn't quite what I was looking for.

What I want to do is:
I have a big puddle of water that I vehicles to go through, but not units. This isn't really near a CP, so the other topics didn't really help. How would I make it so when a unit entered water (or a region in the water) that you would be sent back and put in a vehicle back on shore?
Or:
I could use portals and sectors, but how would I make it so that only units not in vehicles would be teleported?


Edit:
400th Post!

Re: Entering region forces units into vehicles Q....

Posted: Sat Mar 22, 2008 10:13 pm
by Ace_Azzameen_5
Everything you need to know thread, re: Teleporters
http://www.gametoast.com/forums/viewtop ... a&start=15

Follow Penguins instructions. A couple of pages later I posted some code, don't use that, it DOES transport vehicles.

As for forcing people into vehicles, its basically just

Code: Select all

--EnterVehicle(VehicleSpawn, Player)
-- like so
OnEnterRegion(
function(region, player)
EnterVehicle(SpeederBikeSpawn1, player)
end
)
'region' is the name of region being entered and player 'player' is a number. Each unit has a number which you can track it with in LUA. In single player, 0 is always your unit.