Commit 13141d37 authored by Mark Broome's avatar Mark Broome

things attach, gearup req not working

parent 77aad98b
......@@ -59,22 +59,18 @@ switch true do {
//memes start here
case (_veh isKindOf "I_APC_Wheeled_03_cannon_F"):
{
_veh attachTo [_pelican,[0,-5,-0.8]];
_veh attachTo [_pelican,[0,-3.5,-0.3]];
_loaded = true;
};
case (_veh isKindOf "B_TMBT_01_arty_F" or _veh isKindOf "B_MBT_01_arty_F"):
{
_veh attachTo [_pelican,[0,-5,-0.8]];
_loaded = true;
};
case (_veh isKindOf "B_UGV_01_F" or -veh isKindOf "B_UGV_01_rcws_F"):
{
_veh attachTo [_pelican,[0,-5,-0.8]];
_veh attachTo [_pelican,[0,-7,-0.6]];
_veh setDir 180;
_loaded = true;
};
case (_veh isKindOf "B_T_APC_Tracked_01_AA_F" or _veh isKindOf "B_APC_Tracked_01_AA_F"):
{
_veh attachTo [_pelican,[0,-5,-0.8]];
_veh attachTo [_pelican,[0,-3.5,-0.6]];
_loaded = true;
};
};
......
......@@ -21,16 +21,14 @@ if (
(_x isKindOf "I_APC_Wheeled_03_cannon_F") OR
(_x isKindOf "B_TMBT_01_arty_F") OR
(_x isKindOf "B_MBT_01_arty_F") OR
(_x isKindOf "B_UGV_01_F") OR
(_x isKindOf "B_UGV_01_rcws_F") OR
(_x isKindOf "B_T_APC_Tracked_01_AA_F") OR
(_x isKindOf "B_APC_Tracked_01_AA_F") OR
(_x isKindOf "Land_Device_slingloadable_F") OR
(_x isKindOf "Land_Device_slingloadable_F")
} count _vehicles > 0
)
) then {
if ((((getPos (_this select 0)) select 2) < 2) and ((_this animationPhase "rearleftgear") == 1) and ({(_x isKindOf "OPTRE_M808B_base") OR (_x isKindOf "optre_hornet_base")} count _vehicles > 0)) then {
//and ((_this "LandGearUp") == 0)
if ((((getPos (_this select 0)) select 2) < 2) and ({(_x isKindOf "OPTRE_M808B_base") OR (_x isKindOf "optre_hornet_base")} count _vehicles > 0)) then {
titleText ["-------------------------------------------<br/><t color='#ff0000' size='1.5'>RELEASE FAILED!</t><br/>-------------------------------------------<br/>Your landing gears must be raised to unload larger vehicles!", "PLAIN DOWN", -1, true, true];
playSound "FD_CP_Not_Clear_F";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment