OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Commando on 18 Oct 2002, 13:04:45
-
How do I make all soldiers in a flying c-130 eject when in the air? ???
-
p1 action ["EJECT",c130]
p1 is your player name, c130 your c130's name
will do the trick nicely. however if your doing this to several units at the same time, a delay of at least 0.5s (depending on speed) is best to stop them crashing into each other.
hope that helps
*edit* or alternatively a way for a group is
"_x action ["EJECT",c130]" foreach units group1
but this wont put much of a delay between each guy leaving.
-
hmmm, but theres a problem with that - it doesnt unassign the men from the C130 - so they will 'chase' after the C130 to try and get back in.
check out the editors depot to grab a parachute script - you really should have checked there first - there are plenty of them ;)
-
Thansk for the replys! I'll check that out.
my mistake :)
-
- it doesnt unassign the men from the C130 - so they will 'chase' after the C130 to try and get back in.
im using it in my main project atm and i dont have any such problems.. ::)
-
thats probally because its a plane - try it witha chopper and sit back and laff at the wee little men chasing a chopper ;)
-
what im do is i make a unit and make a helo then have the unit board the chopper then when we get in a certain place we start ejecting.