OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Xaio04 on 01 May 2004, 08:27:03

Title: Soliders in HELI trigger
Post by: Xaio04 on 01 May 2004, 08:27:03
Hey,

Is there a line which can be put into a trigger that says when all soliders are in a helicopter, the helicopter can then move to next way point? Instead of helicopter hovering around until the command of the Officer ' ORDERGETIN TRUE ' is activated and then the helicopter lands.

Thanks

Xaio.
Title: Re:Soliders in HELI trigger
Post by: csde-PiLLe on 01 May 2004, 12:15:25
OK, i am trying to understand what you mean ;)

First, get your chopper to land WITHOUT using a getin / load Waypoint-Combo.

You could do this using snYpir's excellent land_chopper scripts, of which different versions and flavors are available.

once the chopper has nearly landed (@(getpos myhelo select 2) <= 3)
have the group-leader run a script

[leader groupname] exec "checkready.sqs"

In this script, have each unit assigned to the chopper as cargo

{_x assignAsCargo choppername}foreach units group (_this select 0)

and then order them in

units group (_this select 0) ordergetin true; (should work - not sure. if it does not, try{_x ordergetin true} foreach units group (_this select 0).


Last, have a check if all units are in the chopper

(If you are NOT using a script, _this select 0 wont work. in that case instead assign a name to the group leader and use that name instead of _this select 0.)

siren going, will end this l8r