mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Make free slots display more accurate in gear
Use the cursorTarget at the time the gear dialog was opened instead of the cursorTarget at the time the script runs. The script can be delayed by several seconds (spawn is scheduled).
This commit is contained in:
@@ -196,4 +196,4 @@ player setVariable ["BIS_noCoreConversations",true];
|
||||
// publicVariable _playerObjName;
|
||||
|
||||
call dayz_meleeMagazineCheck;
|
||||
{player reveal _x} count (nearestObjects [getPosATL player,["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems","DZE_Base_Object"],75]);
|
||||
{player reveal _x} count (nearestObjects [_position,["AllVehicles","WeaponHolder","Land_A_tent","BuiltItems","ModularItems","DZE_Base_Object"],75]);
|
||||
|
||||
Reference in New Issue
Block a user