OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Wardo on 26 Nov 2007, 12:34:38

Title: Can't unload cargo units from vehicles that start as empty [SOLVED].
Post by: Wardo on 26 Nov 2007, 12:34:38
Searched for an answer but couldn't find anything.

I can't get units to disembark from vehicles that start empty (and are loaded using moveIn/assignAs on init lines with two different groups, one for driver/gunner only and another for cargo), be it a boat or a chopper (haven't tried trucks). Forcing them to eject or get out is no good as they just board the vehicle back again after a few seconds. Why start empty? Because I want to use the gunner positions on the Blackhawk as additional "cargo" seats, or use a BLUFOR Crewman to drive RACS men around.

How can I do this? For what's worth it, I have attached two simple Rahmadi missions. Works.Intro.rar is an example of a working set using regular, non-empty starting vehicles. Nogood.Intro.rar is my lastest failed attempt to get an empty vehicle to work.
Title: Re: Can't unload cargo units from vehicles that start as empty.
Post by: LCD on 26 Nov 2007, 13:34:11
good comand dat u need 2 pair w/ da eject comand is da unassignvehicle :D

use

unassignvehicle unitname

or  (if u need 4 da whole group)

{unassignvehicle _x} foreach units groupname

and here u got it ;) :D

LCD OUT
Title: Re: Can't unload cargo units from vehicles that start as empty.
Post by: Wardo on 27 Nov 2007, 18:43:22
Wow! Don't even need to pair with eject that way! They leave the vehicle one by one, which is actually even better than having them all jump out at the same time, because some will jump on top of each other and look silly.

Thanks LCD, that worked, you're da man!  :clap: :good: :-* :D
Title: Re: Can't unload cargo units from vehicles that start as empty [SOLVED].
Post by: LCD on 27 Nov 2007, 21:28:28
u makin me blush  :-[  :D

have fun ;)

LCD OUT