Bagel 0 Posted December 4, 2002 Is there a way to get a heli carrying a squad to be instructed to empty / clear its cargo without using transport unload waypoints. I am using Skumball's onmapsingleclick mission and I want the heli to empty its cargo of humans when it land, without refferring to the squad group name in the script itself. Does the human cargo of a heli have an idenity that can be called upon to be "unassigned" ? I want these helis to ferry a number of squads back and forth and therefore need a generic command for the clearing/emptying of the current squad in the cargo slot of the heli. Thanks Share this post Link to post Share on other sites
joltan 0 Posted December 4, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Bagel @ Dec. 04 2002,06:48)</td></tr><tr><td id="QUOTE">I want these helis to ferry a number of squads back and forth and therefore need a generic command for the clearing/emptying of the current squad in the cargo slot of the heli.<span id='postcolor'> </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">(crew <chopper>) - [(pilot <chopper>),(gunner <chopper>)]<span id='postcolor'>Will give you the array of units in the chopper's cargo. You can the check the array of units if any units in this list are still in the chopper - when they are all out: lift off! Share this post Link to post Share on other sites
Bagel 0 Posted December 4, 2002 thanks ! Just help me a little more, if I want to instruct the array to be unassigned, would it look like this, (name of chopper is heli1) (crew heli1) - [(pilot heli1),(gunner heli1)] unassignvehicle heli1 This would in effect disembark the squad in the cargo of heli1 ? How would I check to see when they have all disembarked, using th "in" command ? Thanks again Share this post Link to post Share on other sites
joltan 0 Posted December 4, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Bagel @ Dec. 04 2002,07:10)</td></tr><tr><td id="QUOTE">How would I check to see when they have all disembarked, using th "in" command ?<span id='postcolor'> I don't think that unassign can accept an array - maybe a group, but what you have with the above is a list in which each unit not belonging to the crew is listed. so what you can do is: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_cargo=(crew chopper1)-[pilot chopper1,gunner chopper1] "unassignVehicle _x" foreach _cargo @(("_x in chopper1" count _cargo) == 0)<span id='postcolor'> The above first writes the complete list of units (but the crew) in the local variable _cargo, then unassigns each unit listed there and finally waits for them to be out of the chopper. Share this post Link to post Share on other sites