horus-DCS Posted February 18, 2024 Posted February 18, 2024 For example, I would run some trigger action if a longbow FCR is equipped on a particular apache unit. Is there a simple script code to do that? Thanks in advance. Sent from my iPad using Tapatalk
TEMPEST.114 Posted February 20, 2024 Posted February 20, 2024 Nothing simple. You're going to have to write a script that trawls all the units table structures to find what you want and then send the mission a trigger event. Not simple or quick.
Grimes Posted February 20, 2024 Posted February 20, 2024 For the Apache FCR you should be able to use getDrawArgumentValue. https://wiki.hoggitworld.com/view/DCS_func_getDrawArgumentValue Although it might have weird results because people can have an FCR be forced onto the aircraft as part of the livery, but if it wasn't setup in the miz to have an FCR it would be non functional. Likewise it might change when the FCR gets added to the loadouts. 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
horus-DCS Posted February 20, 2024 Author Posted February 20, 2024 For the Apache FCR you should be able to use getDrawArgumentValue. https://wiki.hoggitworld.com/view/DCS_func_getDrawArgumentValue Although it might have weird results because people can have an FCR be forced onto the aircraft as part of the livery, but if it wasn't setup in the miz to have an FCR it would be non functional. Likewise it might change when the FCR gets added to the loadouts. Thanks!Sent from my iPad using Tapatalk
Recommended Posts