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:
ebayShopper
2017-04-14 17:18:16 -04:00
parent e99792d0f4
commit 4bf4c62b1d
4 changed files with 6 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
setMousePosition [0.5, 0.5];
private ["_exit","_nearestObjects","_rID","_display","_cTarget","_dis","_friendlyTo","_lastSave","_startTime"];
// players inside vehicle can always access its gear