Update Precise Base Building to v1.0.5 by @Mikeeeyy

Note @icomrade : 1.0.6 test servers need to empty object_data or run the
SQL query linked below before applying this update.

http://epochmod.com/forum/topic/15813-release-v105-precise-base-building-persistent-bases-after-restart-updated-220915/#comment-118663
This commit is contained in:
ebaydayz
2016-05-07 13:06:20 -04:00
parent 03e3293795
commit 26e67270cb
8 changed files with 44 additions and 52 deletions

View File

@@ -52,7 +52,8 @@ _needUpdate = _object in needUpdate_objects;
_object_position = {
private ["_position","_worldspace","_fuel","_key"];
_position = getPosATL _object;
_worldspace = [(getDir _object) call KK_fnc_floatToString, _position call KK_fnc_positionToString];
//_worldspace = [round (direction _object),_position];
_worldspace = [getDir _object, _position] call AN_fnc_formatWorldspace; // Precise Base Building 1.0.5
_fuel = if (_object isKindOf "AllVehicles") then {fuel _object} else {0};
_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];