Tried to get information about weapons/items from RscDisplayInventory class but seems that gearSlotData isnt working at all.
Description
Description
Details
Details
- Legacy ID
- 1052276291
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Open debug console in editor
- Insert and execute this code:
- spawn {
waitUntil {!isNull (findDisplay 602)};
disableSerialization;
_control = ((findDisplay 602) displayCtrl 610);
hint format["GSD: %1\nType: %2", gearSlotData _control, typeName (gearSlotData _control)];
};
- Open inventory and look at the hint
Additional Information
602 is IDD of RscDisplayInventory, 610 is IDC of primary weapon slot defined in UI config.
You can easily check this with code: _control ctrlSetToolTip format["%1", _control];