A3Armory / A3A_A3Wasteland.Altis

A3Wasteland is a survival sandbox mission for Arma 3 where two teams and independent players fight for survival. Built in collaboration between GoT, TPG, KoS, 404Games, and others.
http://a3wasteland.com
GNU Affero General Public License v3.0
9 stars 6 forks source link

Issue with box & parachute in mission_geoCache.sqf after Tac Ops DLC #53

Open Firewall-br opened 6 years ago

Firewall-br commented 6 years ago

Hi.

Tac Ops DLC broke some of my Wasteland missions. All finishing by drop a box in a parachute. When the box touches the ground (in fact it goes below the ground level), after the parachute disappear, the box also disappears! I took your A3Armory.Altis PBO to update mine to v1.4 (already done!), but found the same issue using your mission_geoCache.sqf. After some research (i.e: works fine in the Airdrop_Assistance) I changed my code and fixed all 4 missions, including the GeoCache. Follows part of my code to easily fix the problem (which was in a loop to finish the parachute drop):

// code start _successExec = { // Mission completed { deleteVehicle _x } forEach [_GeoCache];

//SuperBox
_box = createVehicle ["CargoNet_01_box_F",[(_geoPos select 0), (_geoPos select 1), 300],[], 0, "NONE"]; 
_box setDir random 360;
[_box, "WOD_SuperBox"] call fn_refillbox;

{ _x setVariable ["R3F_LOG_disabled", false, true] } forEach [_box];    
{ _x setVariable ["A3W_inventoryLockR3F", false, true] } forEach [_box];                
{ _x setVariable ["allowDamage", true, true] } forEach [_box];      

playSound3D ["A3\data_f_curator\sound\cfgsounds\air_raid.wss", _box, false, _box, 15, 1, 1500];

_para = createVehicle ["I_parachute_02_F", getPosVisual _box, [], 0, "NONE"];

_para setDir getDir _box;

_box attachTo [_para, [0, 0, 0]];

while { ((getPosVisual _box) select 2 > 10) && !(isNil "_para") } do
{
    _para setVectorUp [0,0,1];
    _para setVelocity [0, 0, -10];
    sleep 0.1;
};

waituntil { ((((getPosVisual _box) select 2) < 2) || (isNil "_para")) };    

detach _box;

sleep 0.5;
_box setVectorUp [0,0,1];

// Unlock
{ _x setVariable ["allowDamage", true, true] } forEach [_box];  
{ _x setVariable ["R3F_LOG_disabled", false, true] } forEach [_box];
{ _x setVariable ["A3W_inventoryLockR3F", false, true] } forEach [_box];
sleep 2;    

_smoke1 = "SmokeShellYellow" createVehicle getPosVisual _box;
_smoke1 attachto [_box,[0,0,-0.5]];

_successHintMessage = " The GeoCache supplies have been delivered by parachute!";

}; // code end

Regards,

Firewall-br commented 6 years ago

Here the fix working: https://www.youtube.com/watch?v=OFWxFVtMlnk