use getposalt instead of position here fixes

http://bmrf.me/vbforums/showthread.php?11562-Smelting-Tin-BUG&p=75405#post75405
This commit is contained in:
[VB]AWOL
2013-12-11 08:17:12 -06:00
parent a37a78e251
commit 51c7d3fc87
6 changed files with 14 additions and 10 deletions

View File

@@ -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;
};