Chad Vader Posted July 6, 2022 Posted July 6, 2022 (edited) As title suggests, is this possible? I have objectives that are labelled on the f10 map using a text box and I want them to change colour or have the box removed completely when captured. Any ideas if this is possible and if so, how to accomplish? Thanks. Edited July 6, 2022 by Chad Vader
Grimes Posted July 7, 2022 Posted July 7, 2022 Not directly. At the moment only objects drawn by the scripting engine are allowed to be edited in real time. Everything placed in the editor cannot be changed. Annoyingly some of the functionality in the editor isn't part of the scripting functions either. Scripting lacks the ability to rotate a text box along with some of the outlines. It is easier to do than it looks... Make a trigger zone where you want the text to be. This is using : https://wiki.hoggitworld.com/view/DCS_func_textToAll local point = trigger.misc.getZone("cap1").point trigger.action.textToAll(-1 , 1, point , {1, 0, 0, 1} , {0, 0, 0, 0} , 24 , true , "Capture Point 1" ) Then if you wanted to change the color of it you can call this, which edits the object with id 1 and changes the color to green. trigger.action.setMarkupColor(1 , {0, 1, 0, 1}) To remove it you'd simply call: https://wiki.hoggitworld.com/view/DCS_func_removeMark trigger.action.removeMark(1) 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts