Home   Help Search Login Register  

Author Topic: eject and stay like that  (Read 423 times)

0 Members and 1 Guest are viewing this topic.

GI-YO

  • Guest
eject and stay like that
« on: 17 Sep 2004, 15:01:24 »
I'm having a problem with a group of soldiers ejecting from a chinook, i'm using one of the scripts from the editor and that works fine. But once they have all landed the helicopter magically lands itself and they remount it a fly off into the distance. How do you get the troops to move onto their next WP? Quite annoying I must say! Has anyone ever experienced this problem before? thanks.

GI-YO

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:eject and stay like that
« Reply #1 on: 17 Sep 2004, 15:21:29 »
You need to unassign them from the vehicle.

Have a look at:

http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=18244

Incidentally this is how I eject a group
Code:

; EjectAlpha
; called by [] exec "EjectAlpha.sqs"

_group = units alpha
_count = count _group
_interval = 0.75

_i=0

@atdropzone

#loop

_unit= _group select _i
_unit action ["eject",chopper1]
unAssignVehicle _unit

_i=_i+1
if (_i >= _count) then {exit}

~_interval

goto "loop"


Note: atdropzone is a boolean that is set true when the chopper gets to where I want the drop.

It could be made more generic - but it meets my need
« Last Edit: 17 Sep 2004, 16:26:52 by THobson »