OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Commando on 18 Oct 2002, 13:04:45

Title: C-130, how do i make soldiers eject?
Post 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?  ???
Title: Re:C-130, how do i make soldiers eject?
Post by: david-p on 18 Oct 2002, 14:48:19
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.
Title: Re:C-130, how do i make soldiers eject?
Post by: Messiah on 18 Oct 2002, 19:31:49
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  ;)
Title: Re:C-130, how do i make soldiers eject?
Post by: Commando on 19 Oct 2002, 03:42:40
Thansk for the replys! I'll check that out.
my mistake :)
Title: Re:C-130, how do i make soldiers eject?
Post by: david-p on 19 Oct 2002, 20:22:14
- 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..  ::)
Title: Re:C-130, how do i make soldiers eject?
Post by: Messiah on 19 Oct 2002, 23:34:59
thats probally because its a plane - try it witha  chopper and sit back and laff at the wee little men chasing a chopper  ;)
Title: Re:C-130, how do i make soldiers eject?
Post by: DaRkmAn on 20 Oct 2002, 21:30:03
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.