fix capitalization

This commit is contained in:
bux578 2016-06-16 17:33:21 +02:00
parent 5f52101b26
commit 2d029401f5
6 changed files with 14 additions and 14 deletions

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;

View File

@ -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;

View File

@ -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])};

View File

@ -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);