CryptEarth 3 Posted June 19, 2020 As I'm developing a new mission with persistent saving of players loadouts (using extDB3 on server) I noticed that the slot for binoculars is an array. As I couldn't find any information about it: What's the reason for binoculars has an array instead of just a string for a class name? Can anyone hint me in the right direction? Thanks in advance ... Share this post Link to post Share on other sites
Grumpy Old Man 3549 Posted June 19, 2020 2 minutes ago, CryptEarth said: As I'm developing a new mission with persistent saving of players loadouts (using extDB3 on server) I noticed that the slot for binoculars is an array. As I couldn't find any information about it: What's the reason for binoculars has an array instead of just a string for a class name? Can anyone hint me in the right direction? Thanks in advance ... The binocular command returns a string, maybe you got it mixed up somewhere? Cheers Share this post Link to post Share on other sites
CryptEarth 3 Posted June 19, 2020 10 minutes ago, Grumpy Old Man said: The binocular command returns a string, maybe you got it mixed up somewhere? Cheers Have look at Unit Loadout Array. You can see that in both examples bonuclar is represented as an array. In the first block it's an empty array for "no binoculars" and in the second example it's a simple binoclar with any extras. IIRC I once read it somewhere that binouclars can have attachments or other modifications like enable it to have night/thermal vision capability - but not sure about it and also unable to find it. Share this post Link to post Share on other sites
Harzach 2518 Posted June 19, 2020 Binoculars are a "weapon." Quote ["Binocular", "", "", "", [], [], ""], // Weapon Binocular (follows same layout as other weapons above) It's just the way it is. Share this post Link to post Share on other sites
CryptEarth 3 Posted June 19, 2020 53 minutes ago, Harzach said: Binoculars are a "weapon". So, are there any attachments that can be added to them? The inventory GUI doesn't allow such, so, I guess it has to be done via scripting - if possible at all. Share this post Link to post Share on other sites
Harzach 2518 Posted June 19, 2020 Not that I'm aware of, it's just they way they are configured. Share this post Link to post Share on other sites
CryptEarth 3 Posted June 19, 2020 Yea, just found another topic from 2013 explaining that, for what ever reason, binoculars is(are?) a weapon instead of an item (the topic was about what adding binoculars via addItem fails). Thanks for that info, guess I'll just have to take it as given. But I still think I may have seen some "modification" of binos somewhere - but can't remember where or in what context - nevermind. Share this post Link to post Share on other sites