gc8 977 Posted December 26, 2012 hi can you make ui image that rotates to the angle you set it to from script? i'm trying to do something like the vehicles (tanks) damage image, which shows what parts of the the tank are damaged as well as the turret direction, but didn't find any commands for this.. thanks Share this post Link to post Share on other sites
samatra 85 Posted December 26, 2012 There is http://resources.bisimulations.com/wiki/ctrlSetAngle But I'm not sure if it is available in ArmA 2, looks like not. Share this post Link to post Share on other sites
gc8 977 Posted December 26, 2012 your right it isnt available for arma2. weird thing.. i wonder how the tank turrent's image rotation is done then. is it direct call from the game engine or what. Share this post Link to post Share on other sites
samatra 85 Posted December 26, 2012 (edited) Yeah hardcoded apparently. Created feature request ticket: https://dev-heaven.net/issues/69099 Who knows maybe devs will gift us a present and make it happen. Edited December 26, 2012 by SaMatra Share this post Link to post Share on other sites
CarlGustaffa 4 Posted December 26, 2012 They could look at flightsim which gives plenty of gui commands to users so that they can make pretty much any kind of flight instrument they want. Set Angle would be a start, but a lot more is needed, like moving masks, movement limit commands and so on. Their xml code structure (even if it was reverse polish notation, which I actually got used to :)), is about the best thing I ever experienced wrt controlling gui graphics: Example: http://msdn.microsoft.com/en-us/library/cc526953.aspx Share this post Link to post Share on other sites
gc8 977 Posted December 27, 2012 ok thanks for making the ticket. guess ill have to wait then. (for year or so lol) Share this post Link to post Share on other sites
riouken 15 Posted December 27, 2012 Have you tried using an object with an animation? http://community.bistudio.com/wiki/DialogControls-Objects Im not 100% if that will work but it might be worth a shot. You could base the turret direction off the watch. Same principle. The underlay(watch face) will be the tank and the "Hand" would be the turret. Share this post Link to post Share on other sites
gc8 977 Posted December 29, 2012 thanks i tried that and was able to show compass. the compass didnt work though but was just still. I guess i need to make new 3d models to have the stuff displayed i needed. Share this post Link to post Share on other sites
das attorney 858 Posted December 31, 2012 Would like to see this implemented in Arma 2. Thanks for creating ticket - voted up :) Share this post Link to post Share on other sites