mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Change ace_time to cba_missionTime
This commit is contained in:
parent
6b62436cfb
commit
d5f8d965f3
@ -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), {
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user