Fix nearestObjects position error

_pos should be _charPos. Currently it causes this error in server RPT on 1.63.112555+ because it references the player object, not the player object's position:

 6:36:48 Error in expression <ear"] call server_updateObject;
} count nearestObjects [_pos, dayz_updateObjects>
 6:36:48   Error position: <nearestObjects [_pos, dayz_updateObjects>
 6:36:48   Error 0 elements provided, 3 expected
 6:36:48 File z\addons\dayz_server\compile\server_playerSync.sqf, line 209
This commit is contained in:
ebaydayz
2014-07-15 23:54:26 -04:00
parent 652160a080
commit 87ee176d7d

View File

@@ -203,10 +203,9 @@ if (_characterID != "0") then {
}; };
// Force gear updates for nearby vehicles/tents // Force gear updates for nearby vehicles/tents
_pos = _this select 0;
{ {
[_x, "gear"] call server_updateObject; [_x, "gear"] call server_updateObject;
} count nearestObjects [_pos, dayz_updateObjects, 10]; } count (nearestObjects [_charPos, dayz_updateObjects, 10]);
//[_charPos] call server_updateNearbyObjects; //[_charPos] call server_updateNearbyObjects;
//Reset timer //Reset timer