Home   Help Search Login Register  

Author Topic: wait for men to get out  (Read 674 times)

0 Members and 1 Guest are viewing this topic.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
wait for men to get out
« on: 14 Dec 2002, 14:27:48 »
now ive got a couple of littlebirds which come in - then drop down using a nifty little script and slide along the ground to a stop...

so now i order my men out - but the chopper takes off even though i have tyhe following condition in a trigger that when activated lets the chopper flyinheight 20

Code: [Select]
not(op1 in insertchopper1) and not(op2 in insertchopper1) and not(op3 in insertchopper1) and not(op4 in insertchopper1)
but after the 2nd guy gets out the trigger seems to get activated since the 2 support choppers buzz out, and the littlebird takes off.

any ideas why? i want it to wait till all my men are out of the chopper - i dont want to use a transport unload wp since it makes it land really horribly.
Proud Member of the Volunteer Commando Battalion

CrashnBurn

  • Guest
Re:wait for men to get out
« Reply #1 on: 14 Dec 2002, 15:33:53 »
Try this-

Trigger1-

condition:

speed insertchopper1 < 10 and (getpos insertchopper1 select 2 < 5)

on activation:

"unassignvehicle _x" foreach units ops; insertchopper1 stop true

Trigger2-

condition:

"!(_x in insertchopper1)" count units ops == "alive _x" count units ops

on activation:

insertchopper1 stop false; insertchopper1 flyinheight 50; insertchopper1 setspeedmode "NORMAL"; insertchopper1 move getpos gamelogic

I named the group ops instead of calling out each unit. This is tested and works great for fast insertions.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:wait for men to get out
« Reply #2 on: 14 Dec 2002, 16:28:28 »
nope

unfortunatly the littlebird takes off after the 2nd ma gets out and the 4th man falls to his doom again... cant work this out.
Proud Member of the Volunteer Commando Battalion

CrashnBurn

  • Guest
Re:wait for men to get out
« Reply #3 on: 14 Dec 2002, 16:34:18 »
If it has a stop order then how is it taking off ? Does it have a leader over riding the stop order ? Can an AI leader do that ? If so, you could have the chopper join grpnull as it starts to unload and rejoin its leader when unloaded.
« Last Edit: 14 Dec 2002, 16:36:44 by CrashnBurn »

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:wait for men to get out
« Reply #4 on: 14 Dec 2002, 16:45:17 »
nope - just single units - all on their own - the chopper has waypoints to make it come in and slow down and drop in height - could that fuck it up?
Proud Member of the Volunteer Commando Battalion

CrashnBurn

  • Guest
Re:wait for men to get out
« Reply #5 on: 14 Dec 2002, 20:06:05 »
Have a quick look at this. Maybe it'll give you some new ideas ?