mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix waitAndExecute syntax
This commit is contained in:
parent
3bbabac2d7
commit
bed51ac8a4
@ -24,7 +24,7 @@ if !(local _unit) exitWith {
|
|||||||
// Quit if the unit already has a vital loop, or is dead, unless it's forced
|
// Quit if the unit already has a vital loop, or is dead, unless it's forced
|
||||||
if ((_unit getVariable[QGVAR(addedToUnitLoop),false] || !alive _unit) && !_force) exitWith{};
|
if ((_unit getVariable[QGVAR(addedToUnitLoop),false] || !alive _unit) && !_force) exitWith{};
|
||||||
|
|
||||||
// Schedule the loop to be executed again later
|
// Schedule the loop to be executed again 1 sec later
|
||||||
// @todo: should the loop be started righ away instead?
|
// @todo: should the loop be started righ away instead?
|
||||||
_unit setVariable [QGVAR(addedToUnitLoop), true, true];
|
_unit setVariable [QGVAR(addedToUnitLoop), true, true];
|
||||||
[DFUNC(vitalLoop), 1, [_unit, ACE_time]] call EFUNC(common,waitAndExecute);
|
[DFUNC(vitalLoop), [_unit, ACE_time], 1] call EFUNC(common,waitAndExecute);
|
||||||
|
@ -44,5 +44,5 @@ if (_pain > (_unit getVariable [QGVAR(painSuppress), 0])) then {
|
|||||||
[_unit, _pain] call FUNC(playInjuredSound);
|
[_unit, _pain] call FUNC(playInjuredSound);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Schedule the loop to be executed again later
|
// Schedule the loop to be executed again 1 sec later
|
||||||
[DFUNC(vitalLoop), 1, [_unit, ACE_time]] call EFUNC(common,waitAndExecute);
|
[DFUNC(vitalLoop), [_unit, ACE_time], 1] call EFUNC(common,waitAndExecute);
|
||||||
|
Loading…
Reference in New Issue
Block a user