mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user