mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix capitalization
This commit is contained in:
parent
5f52101b26
commit
2d029401f5
@ -6,14 +6,14 @@
|
||||
private _config = [_type] call FUNC(getDetectorConfig);
|
||||
|
||||
private _helperObject = "ACE_LogicDummy" createVehicleLocal (getPos _unit);
|
||||
_unit setvariable [QGVAR(helperLogic), _helperObject];
|
||||
_unit setVariable [QGVAR(helperLogic), _helperObject];
|
||||
|
||||
[FUNC(detectorLoop), 0.01, [_unit, _type, _config, CBA_missionTime, _helperObject]] call CBA_fnc_addPerFrameHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
[QGVAR(detectorDisabled), {
|
||||
params ["_unit", "_type"];
|
||||
private _helperObject = _unit getvariable [QGVAR(helperLogic), objNull];
|
||||
private _helperObject = _unit getVariable [QGVAR(helperLogic), objNull];
|
||||
if !(isNull _helperObject) then {
|
||||
deleteVehicle _helperObject;
|
||||
};
|
||||
|
@ -17,18 +17,18 @@
|
||||
params ["_args", "_idPFH"];
|
||||
_args params ["_unit", "_type", "_detectorConfig", "_lastPlayed"];
|
||||
|
||||
if !([_unit, _type] call FUNC(hasDetectorType)) exitwith {
|
||||
if !([_unit, _type] call FUNC(hasDetectorType)) exitWith {
|
||||
// disable detector type
|
||||
[_unit, _type] call FUNC(disableDetector);
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
if (!alive _unit) exitwith {
|
||||
if (!alive _unit) exitWith {
|
||||
[_unit, _type] call FUNC(disableDetector);
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
if !([_unit, _type] call FUNC(isDetectorEnabled)) exitwith {
|
||||
if !([_unit, _type] call FUNC(isDetectorEnabled)) exitWith {
|
||||
[_idPFH] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
|
||||
params ["_unit", "_detectorType"];
|
||||
|
||||
_unit setvariable [format[QGVAR(enable_%1), _detectorType], false];
|
||||
_unit setVariable [format[QGVAR(enable_%1), _detectorType], false];
|
||||
|
||||
[QGVAR(detectorDisabled), [_unit, _detectorType]] call CBA_fnc_localEvent;
|
||||
|
@ -19,6 +19,6 @@
|
||||
|
||||
params ["_unit", "_detectorType"];
|
||||
|
||||
_unit setvariable [format[QGVAR(enable_%1), _detectorType], true];
|
||||
_unit setVariable [format[QGVAR(enable_%1), _detectorType], true];
|
||||
|
||||
[QGVAR(detectorEnabled), [_unit, _detectorType]] call CBA_fnc_localEvent;
|
||||
|
@ -18,4 +18,4 @@
|
||||
|
||||
params ["_unit", "_detectorType"];
|
||||
|
||||
alive _unit && {(_unit getvariable [format[QGVAR(enable_%1), _detectorType], false])};
|
||||
alive _unit && {(_unit getVariable [format[QGVAR(enable_%1), _detectorType], false])};
|
||||
|
@ -19,23 +19,23 @@
|
||||
|
||||
params ["_unit", "_detectorSound"];
|
||||
|
||||
if (isNull _unit) exitwith {
|
||||
if (isNull _unit) exitWith {
|
||||
ACE_LOGERROR_1("unit does not exist [%1]",_unit);
|
||||
};
|
||||
if (!alive _unit) exitwith {
|
||||
if (!alive _unit) exitWith {
|
||||
ACE_LOGERROR_1("unit is not alive [%1]",_unit);
|
||||
};
|
||||
|
||||
private _helperObject = _unit getvariable [QGVAR(helperLogic), objNull];
|
||||
private _helperObject = _unit getVariable [QGVAR(helperLogic), objNull];
|
||||
if (!isNull _helperObject) then {
|
||||
deleteVehicle _helperObject;
|
||||
};
|
||||
_helperObject = "ACE_LogicDummy" createVehicleLocal (getPos _unit);
|
||||
|
||||
if !(isNull _helperObject) then {
|
||||
_helperObject attachto [_unit,[0,0,-3],""];
|
||||
_unit setvariable [QGVAR(helperLogic), _helperObject];
|
||||
|
||||
_helperObject attachTo [_unit,[0,0,-3],""];
|
||||
_unit setVariable [QGVAR(helperLogic), _helperObject];
|
||||
|
||||
[_helperObject, _unit] say3D _detectorSound;
|
||||
} else {
|
||||
ACE_LOGERROR_1("helper does not exist [%1]",_helperObject);
|
||||
|
Loading…
Reference in New Issue
Block a user