Change ace_time to cba_missionTime

This commit is contained in:
VKing 2016-06-12 17:22:44 +02:00
parent 6b62436cfb
commit d5f8d965f3
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
private _helperObject = "ACE_LogicDummy" createVehicleLocal (getPos _unit);
_unit setvariable [QGVAR(helperLogic), _helperObject];
[FUNC(detectorLoop), 0.01, [_unit, _type, _config, ACE_time, _helperObject]] call CBA_fnc_addPerFrameHandler;
[FUNC(detectorLoop), 0.01, [_unit, _type, _config, CBA_missionTime, _helperObject]] call CBA_fnc_addPerFrameHandler;
}] call CBA_fnc_addEventHandler;
[QGVAR(detectorDisabled), {

View File

@ -41,8 +41,8 @@ if (ACE_player == _unit && {currentWeapon _unit == _type}) then {
case (_distance >= 0.75): {0.7};
default {0.5};
};
if (_hasDetected && {(ACE_time - _lastPlayed > _distanceTiming)}) then {
_args set [3, ACE_time];
if (_hasDetected && {(CBA_missionTime - _lastPlayed > _distanceTiming)}) then {
_args set [3, CBA_missionTime];
_detectorConfig params ["_type", "_radius", "_detectableTypes", "_sounds"];
private _sound = switch (true) do {
case (_distance >= 2): {_sounds select 3};