Ranwer135 308 Posted June 24, 2015 Hey guys, I'm continuing the WIP of "Dynamic Survival Sandbox: The Mod", however, my main challenge is implementing a right-click option for items in the inventory or "RscGear" such as in the DayZ Mod and Standalone. I have all the necessary tools and resources to get this done, I just need to know how? :confused: I have also been studying how the DayZ Developers have created the unique dialog in their configs and sqf files. ArmA 3 for me is down at the moment because my Hard drive died from the common "Click of Death", so porting code from ArmA 2 to ArmA 3 isn't a hassle for me :) If you guys have other alternatives or ways to make an item interactive, please don't hesitate to post it here. Thanks, Rawner135 NOTE: This post is relating to the configs and scripting sections of ArmA 3: Editing Share this post Link to post Share on other sites
Larrow 2803 Posted June 24, 2015 See this thread, should be enough info to get you going, Share this post Link to post Share on other sites
Ranwer135 308 Posted June 24, 2015 See this thread, should be enough info to get you going, Thanks for the heads up on that thread, should help me a lot :) Also, just wondering. Within the config of a magazine item, is it possible to attach a ctrlAddEventHandler "onMouseButtonClick" to that Item? If so, this would be an extremely, beneficial alternative, other than DayZ's right-click function. (That way, when someone left clicks on the item in their inventory, they could then press a key defined on their keyboard, which then activates the item to do whatever specific script it is told to do. :clap: ) Share this post Link to post Share on other sites
Ranwer135 308 Posted June 26, 2015 (edited) Ok, I now know how to use a dialog in both ArmA 2 and 3. But as I have said above, is there any possible way to detect if that specific item is left/right mouse clicked, within the gear menu? This has been done both in the DayZ mod and ArmA 3's Breaking Point. So please, if anyone knows similar ways to do this, it would be great. Thanks, Rawner135 Edited June 26, 2015 by Ranwer Share this post Link to post Share on other sites
Larrow 2803 Posted June 26, 2015 Youve already answered your own question in your previous post. Except you dont put a ctrlEH on an item, you put it on a ctrl. An item in your inventory display is not an item, it is a ctrl showing details about an item. Share this post Link to post Share on other sites