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!
Entering region forces units into vehicles Q....
Moderator: Moderators
-
Fingerfood
- Sith

- Posts: 1262
- Joined: Fri Nov 30, 2007 9:40 pm
-
Ace_Azzameen_5
- Jedi

- Posts: 1119
- Joined: Sat Apr 23, 2005 8:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Entering region forces units into vehicles Q....
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
'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.
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
)
