Page MenuHomeFeedback Tracker

gearSlotData and friends
New, NormalPublic

Description

These commands don't seem work in Arma3. Always return empty string when querying inventory controls.
They appear to be limited to control type 103. Is there even control type 103 in the whole game (I haven't found any yet)? 🤔

The example 2 in gearSlotData seems to refer to A2 since A3 inventory display is 602, not 106.

So, was wondering whether these could be made to work in A3, or get new commands?
Getting information for example about ammo counts when fiddling in inventory window is impossible and there are cases when you would need it.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Engine

Event Timeline

h- created this task.Oct 6 2023, 8:07 PM
SaMatra added a subscriber: SaMatra.Oct 7 2023, 1:39 PM

I think this command is obsolete in A3. You can get gear info with lbData and lbValue from A3's inventory lists. Check RscDisplayInventory config for inventory IDCs of lists.

h- added a comment.Oct 7 2023, 3:11 PM

You can't get the ammo count though.
Value returns some number that seems to make no sense; sometimes some mags return 127 (at least with LBDrag event) whereas usually it returns the number the item is in the list, data returns classname.

Yeah, looks like ammo count is engine-hardcoded. Perhaps there could be a scripting command to return it by ListBox index. Maybe let us draw similar bar on any ListBox and ListNBox too?
NUMBER = CONTROL lbBar INDEX
CONTROL lbSetBar [INDEX, NUMBER]
with values ranging from 0 to 1