mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Replace spawn with waitAndExec
This commit is contained in:
parent
1cdc341320
commit
04412e8ba4
@ -24,7 +24,4 @@ _damage = _this select 1;
|
||||
_strength = (_damage * 2) min 1;
|
||||
if (_strength < 0.01) exitWith {};
|
||||
|
||||
[_unit, _strength] spawn {
|
||||
sleep 0.2;
|
||||
_this call FUNC(earRinging);
|
||||
};
|
||||
[{_this call FUNC(earRinging)}, [_unit, _strength], 0.2, 0] call EFUNC(common,waitAndExecute);
|
||||
|
@ -56,7 +56,4 @@ _strength = _loudness - (_loudness/50 * _distance); // linear drop off
|
||||
|
||||
if (_strength < 0.01) exitWith {};
|
||||
|
||||
[_unit, _strength] spawn {
|
||||
sleep 0.2;
|
||||
_this call FUNC(earRinging);
|
||||
};
|
||||
[{_this call FUNC(earRinging)}, [_unit, _strength], 0.2, 0] call EFUNC(common,waitAndExecute);
|
||||
|
Loading…
Reference in New Issue
Block a user