oddballsix 19 Posted May 7, 2014 Despite multiple searches, I cannot figure out how to set it up so that multiple units can get into vehicles that are in a single group. So lets say you have 6 HUMVEES that can hold 4 people each. These are a group. You have 3 different units that add up to 20 people. How do I set it up so that the 3 groups of infantry can all load into the single group of transport vehicles? The only way I can think of to do it is to do a join then a get in which destroys the units getting into the vehicles, and then I have to script individual units to go off into thier own unit through a later manual script. Is there a way to do this using the correct get in / load and get out / transport unload features? Share this post Link to post Share on other sites
barbolani 198 Posted May 7, 2014 Why not sincronising multiple getin wp with one single load wp for those humvees? Share this post Link to post Share on other sites
oddballsix 19 Posted May 7, 2014 Why not sincronising multiple getin wp with one single load wp for those humvees? Because it doesn't work. Only one of the units actually gets in, then all of the humvees leave because one of the units has fulfilled the condition. I have used custom scripting to keep the humvees there, but neither of the other groups actually attempts to get in. Share this post Link to post Share on other sites
barbolani 198 Posted May 7, 2014 uhm, you say units but I think you you mean groups, isn't it? Anyway, not in front of the arma PC, but you could try to put a Getin in one group and Getin Nearest to the rest of the groups, maybe works.... ...or make three groups of one humvee, make it on the traditional way, and, whene everybody is in, join the humvees to one single group, everything syncronised. That will work Share this post Link to post Share on other sites
oddballsix 19 Posted May 12, 2014 ...or make three groups of one humvee, make it on the traditional way, and, whene everybody is in, join the humvees to one single group, everything syncronised. That will work You know, that might be the best way to do it, even if it is probably more complicated than it needs to be. Share this post Link to post Share on other sites
mech79 10 Posted May 12, 2014 (edited) Maybe mess with this code in a move point condition real close to the trucks. ((!alive Unit1) or (Unit1 in Humvee1) or (Unit1 in Humvee2) or Unit1 in Humvee3)) and ((!alive Unit2) or (Unit2 in Humvee1) or (Unit2 in Humvee2) or Unit2 in Humvee3)) ... Etc, Etc. Not sure if it will work but I use it like this for helo transports. ((!alive Unit1) or (Unit1 in rescue1)) and ((!alive Unit2) or (Unit2 in rescue1)) and ((!alive Unit3) or (Unit3 in rescue1)) and ((!alive Unit4) or (Unit4 in rescue1))\ Ok I read it wrong sorry. This will keep the groups from moving to next point until all the personal are loaded into trucks. Edited May 12, 2014 by mech79 Share this post Link to post Share on other sites
Tajin 349 Posted May 12, 2014 Try with this script: http://rising.at/projekte/ArmA/fill_vehicles.sqf _groups = _this select 0; _cars = _this select 1; _units = []; { _units = _units + units _x; } forEach _groups; _i = 0; { _max = getNumber (configFile >> "CfgVehicles" >> typeOf _x >> "transportsoldier"); for [{_space = _max - count (assignedCargo _x)},{_space > 0},{_space = _space - 1} do { if (_i > count _units) exitWith{}; _guy = _units select _i; _guy assignAsCargo _x; [_guy] orderGetIn true; _i = _i + 1; }; } forEach _cars; execute it like this: [[group1,group2,group3],[vehicle1,vehicle2,vehicle3]] execVM "fill_vehicles.sqf"; So you pass one array with all groups of units that you want to load and a second array with a list of vehicles to board. Hope it works, couldn't test it yet. Share this post Link to post Share on other sites