Hello!
I want to make an air supply in a ww2 mission. Germans are outflanked in the Demyansk pocket and Luftwaffe give them supply . Unfortunatly Ju 52 diseppar from any ww2 mods so I have to use Dakotas. The planes will drop 20 german canisters. I'm using a trigger when the planes reach an area, it's activate the following execVM script (my friend recommended this):
_para = createVehicle ["B_Parachute_02_F", [0,0,1700], [], 0, ""];
_para setPosATL (player modelToWorld[0,0,2000]);
obj1 attachTo [_para,[0,0,0]];
WaitUntil {((((position obj1) select 2) < 0.6) || (isNil "_para"))};
detach obj1;
obj1 SetVelocity [0,0,-5];
sleep 0.3;
obj1 setPos [(position obj1) select 0, (position obj1) select 1, 1];
obj1 SetVelocity [0,0,0];
"obj1" is the 1st canister. It's working, but only with 1st canister. If I change the "obj" variables, the script didn't work with other canisters only the 1st one. I try with 2 scripts in one sqf file, i try with 2 files don't work too. I try with 1 and 2 triggers don't work.
What I have to do I I want to drop my all (20) canisters?