diff --git a/SQF/dayz_code/actions/fill_startGenerator.sqf b/SQF/dayz_code/actions/fill_startGenerator.sqf index 135a1b852..d0ae5d701 100644 --- a/SQF/dayz_code/actions/fill_startGenerator.sqf +++ b/SQF/dayz_code/actions/fill_startGenerator.sqf @@ -65,7 +65,7 @@ if (_finished) then { // Sound_Generator1 // Looks like this was the entended way of making the sound, lets test - _soundSource = createSoundSource ["Sound_Generator1", position player, [], 0]; + _soundSource = createSoundSource ["Sound_Generator1", getPosATL player, [], 0]; _vehicle setVariable ["GeneratorSound", _soundSource,true]; @@ -78,7 +78,7 @@ if (_finished) then { // Sound_Generator1 // Looks like this was the entended way of making the sound, lets test - _soundSource = createSoundSource ["Sound_Generator1", position player, [], 0]; + _soundSource = createSoundSource ["Sound_Generator1", getPosATL player, [], 0]; _vehicle setVariable ["GeneratorSound", _soundSource,true]; diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index 1bdaf2173..a633509e6 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -8,7 +8,7 @@ if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_40") , DZE_ActionInProgress = true; // disallow building if too many objects are found within 30m -if((count ((position player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];}; +if((count ((getPosATL player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];}; _onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1; _isWater = dayz_isSwimming; @@ -57,7 +57,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> switch(_need) do{ case "fire": { - _isNear = {inflamed _x} count (position player nearObjects _distance); + _isNear = {inflamed _x} count (getPosATL player nearObjects _distance); if(_isNear == 0) then { _abort = true; _reason = "fire"; diff --git a/SQF/dayz_code/actions/player_copyKey.sqf b/SQF/dayz_code/actions/player_copyKey.sqf index fc07bd891..168dff66b 100644 --- a/SQF/dayz_code/actions/player_copyKey.sqf +++ b/SQF/dayz_code/actions/player_copyKey.sqf @@ -16,7 +16,7 @@ if (!_haskey) exitWith {DZE_ActionInProgress = false; cutText [format[(localize _hastoolweapon = "ItemKeyKit" in weapons player; if (!_hastoolweapon) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_57") , "PLAIN DOWN"]}; -_isNear = {inflamed _x} count (position player nearObjects 3); +_isNear = {inflamed _x} count (getPosATL player nearObjects 3); if(_isNear == 0) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_58") , "PLAIN DOWN"]}; call gear_ui_init; diff --git a/SQF/dayz_code/actions/player_craftItem.sqf b/SQF/dayz_code/actions/player_craftItem.sqf index e99d2272f..476ebae45 100644 --- a/SQF/dayz_code/actions/player_craftItem.sqf +++ b/SQF/dayz_code/actions/player_craftItem.sqf @@ -42,7 +42,7 @@ _canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder); // Need Near Requirements _needNear = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "neednearby"); if("fire" in _needNear) then { - _isNear = {inflamed _x} count (position player nearObjects _distance); + _isNear = {inflamed _x} count (getPosATL player nearObjects _distance); if(_isNear == 0) then { _abort = true; _reason = "fire"; diff --git a/SQF/dayz_code/actions/player_drink.sqf b/SQF/dayz_code/actions/player_drink.sqf index 8dd5cc952..29111fd81 100644 --- a/SQF/dayz_code/actions/player_drink.sqf +++ b/SQF/dayz_code/actions/player_drink.sqf @@ -53,9 +53,11 @@ if (_hasoutput and !_invehicle) then { _itemtodrop = drink_output select (drink_with_output find _itemorignal); sleep 3; - _nearByPile= nearestObjects [(position player), ["WeaponHolder","WeaponHolderBase"],2]; + _nearByPile= nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2]; if (count _nearByPile ==0) then { - _item = createVehicle ["WeaponHolder", position player, [], 0.0, "CAN_COLLIDE"]; + _iPos = getPosATL player; + _radius = 0.0; + _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"]; } else { _item = _nearByPile select 0; }; diff --git a/SQF/dayz_code/actions/player_eat.sqf b/SQF/dayz_code/actions/player_eat.sqf index 042dd497d..f00045d29 100644 --- a/SQF/dayz_code/actions/player_eat.sqf +++ b/SQF/dayz_code/actions/player_eat.sqf @@ -53,9 +53,11 @@ if (_hasoutput and !_invehicle) then { _itemtodrop = food_output select (food_with_output find _itemorignal); sleep 3; - _nearByPile= nearestObjects [(position player), ["WeaponHolder","WeaponHolderBase"],2]; + _nearByPile= nearestObjects [(getposATL player), ["WeaponHolder","WeaponHolderBase"],2]; if (count _nearByPile ==0) then { - _item = createVehicle ["WeaponHolder", position player, [], 0.0, "CAN_COLLIDE"]; + _iPos = getPosATL player; + _radius = 0.0; + _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"]; } else { _item = _nearByPile select 0; };