fix setFWS locality issues, fix #892

This commit is contained in:
commy2 2015-04-30 00:53:49 +02:00
parent 1218ee78cb
commit 8e54e6ec13
3 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class Extended_InitPost_EventHandlers {
init = QUOTE(if (local (_this select 0)) then {_this call FUNC(setName)};); init = QUOTE(if (local (_this select 0)) then {_this call FUNC(setName)};);
}; };
class GVAR(forceWalk) { class GVAR(forceWalk) {
init = QUOTE(if (local (_this select 0)) then {_this call FUNC(applyForceWalkStatus);};); init = QUOTE(_this call FUNC(applyForceWalkStatus));
}; };
class GVAR(muteUnit) { class GVAR(muteUnit) {
init = QUOTE(_this call FUNC(muteUnitHandleInitPost)); init = QUOTE(_this call FUNC(muteUnitHandleInitPost));

View File

@ -37,3 +37,4 @@ if (isPlayer _unit) then {
}; };
}foreach ([_unit] call FUNC(getAllDefinedSetVariables)); }foreach ([_unit] call FUNC(getAllDefinedSetVariables));
_unit setVariable ["ACE_forceWalkStatusNumber", 0, true];

View File

@ -50,4 +50,4 @@ _bitmaskNumber = _forceWalkReasonsBooleans call FUNC(toBitmask);
_unit setVariable ["ACE_forceWalkStatusNumber", _bitmaskNumber, true]; _unit setVariable ["ACE_forceWalkStatusNumber", _bitmaskNumber, true];
// actually apply the forceWalk command globaly // actually apply the forceWalk command globaly
[[_unit], QUOTE(FUNC(applyForceWalkStatus)), _unit] call FUNC(execRemoteFnc); [[_unit], QUOTE(FUNC(applyForceWalkStatus)), 2] call FUNC(execRemoteFnc);