Skip to content

Commit

Permalink
Replace Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaren882 committed Oct 15, 2024
1 parent 509ef3f commit f2b6806
Show file tree
Hide file tree
Showing 62 changed files with 3,407 additions and 3,407 deletions.
52 changes: 26 additions & 26 deletions addons/AVFEVFX/functions/A3TI/fn_toggleLTM.sqf
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
/*
Author: Lala14
Author: Lala14
Function:
A3TI_fnc_toggleLTM
Function:
A3TI_fnc_toggleLTM
Description:
Toggles on unit if their LTM is on or off
Description:
Toggles on unit if their LTM is on or off
Parameter(s):
NONE
Parameter(s):
NONE
Returns:
NONE
Returns:
NONE
*/

_unit = call A3TI_fnc_getCurrentControlledUnit;

if (
isNull _unit || (
BCE_AUTO_LTM_A3TI_fn &&
1 != count _this
)
isNull _unit || (
BCE_AUTO_LTM_A3TI_fn &&
1 != count _this
)
) exitWith {};

_isLTMon = !isNil {_unit getVariable ["A3TI_LTM_StartTime",nil]};
Expand All @@ -29,18 +29,18 @@ _lastVehConfig = (_unit getVariable ["A3TI_LTM_currentTurretConfig",configNull])
_param = [!_isLTMon,_this # 0] select BCE_AUTO_LTM_A3TI_fn;

if (_param) then {
if (
((vehicle _unit isKindOf "Plane") || (vehicle _unit isKindOf "UAV") || (vehicle _unit isKindOf "Helicopter")) &&
!(vehicle _unit isKindOf "LandVehicle")
) then {
_unit setVariable ["A3TI_LTM_StartTime",time,true];
if ((isNull(_lastVehConfig)) || !(_lastVehConfig isEqualTo _curVehConfig)) then {
_unit setVariable ["A3TI_LTM_currentTurretConfig",call A3TI_fnc_getPlayerTurret,true];
_unit setVariable ["A3TI_LTM_Mode", 0, true];
};
//_unit setVariable ["A3TI_LTM_Mode"]
};
if (
((vehicle _unit isKindOf "Plane") || (vehicle _unit isKindOf "UAV") || (vehicle _unit isKindOf "Helicopter")) &&
!(vehicle _unit isKindOf "LandVehicle")
) then {
_unit setVariable ["A3TI_LTM_StartTime",time,true];
if ((isNull(_lastVehConfig)) || !(_lastVehConfig isEqualTo _curVehConfig)) then {
_unit setVariable ["A3TI_LTM_currentTurretConfig",call A3TI_fnc_getPlayerTurret,true];
_unit setVariable ["A3TI_LTM_Mode", 0, true];
};
//_unit setVariable ["A3TI_LTM_Mode"]
};
} else {
_unit setVariable ["A3TI_LTM_StartTime",nil,true];
//_unit setVariable ["A3TI_LTM_currentTurretConfig",nil,true];
_unit setVariable ["A3TI_LTM_StartTime",nil,true];
//_unit setVariable ["A3TI_LTM_currentTurretConfig",nil,true];
};
Loading

0 comments on commit f2b6806

Please sign in to comment.