mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +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:
@@ -44,7 +44,7 @@ _valueIDCs = [9002,9004,9006];
|
||||
if (vehicle player != player) then {
|
||||
_object = vehicle player;
|
||||
} else {
|
||||
_object = cursorTarget;
|
||||
_object = _this;
|
||||
};
|
||||
|
||||
_type = typeOf _object;
|
||||
|
||||
Reference in New Issue
Block a user