funkyfranky Posted June 4, 2018 Posted June 4, 2018 Can anybody tell me, if setting the alarm state for naval units is implemented/necessary? I can set it via the mission editor in the ADVANCED (WAYPOINT ACTIONS) to RED or AUTO. But when I start the mission, the unit always has alarm state GREEN. I can also try to change it during the mission as game master, but it always automatically goes back to GREEN. If I try to set it via scripting, I get an error with this line controller:setOption( AI.Option.Naval.id.ALARM_STATE, AI.Option.Naval.val.ALARM_STATE.GREEN ) So the enumerator AI.Option.Naval.id.ALARM_STATE obviously does not exist. Is it actually necessary to set the alarm state for naval groups to anything different than GREEN? In particular, would a naval group still move if in alarm state RED and being under fire? A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
funkyfranky Posted June 22, 2019 Author Posted June 22, 2019 For the records: controller:setOption(9, 0) -- Alarm State Auto controller:setOption(9, 1) -- Alarm State Green controller:setOption(9, 2) -- Alarm State Red A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
Hardcard Posted June 22, 2019 Posted June 22, 2019 @funkyfranky Perhaps it's a silly question, but isn't controller supposed to be written with capital C? As in: Controller:setOption() Thanks for those ids, btw, they'll come in handy :thumbup: [sIGPIC][/sIGPIC]
funkyfranky Posted June 22, 2019 Author Posted June 22, 2019 Perhaps it's a silly question, but isn't controller supposed to be written with capital C? Not a silly question at all - I've been sloppy ;) To be more precise, what I call "controller" should be the object the getController DCS API functions returns. A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
Hardcard Posted June 22, 2019 Posted June 22, 2019 To be more precise, what I call "controller" should be the object the getController DCS API functions returns. Right, I figured as much, that's why I said it might be silly to ask :D Regarding the alarm state thingy for ships, I seem to recall that I used it a few days ago, can't recall if it worked as intended... [sIGPIC][/sIGPIC]
Grimes Posted June 23, 2019 Posted June 23, 2019 Full list of the ids: https://wiki.hoggitworld.com/view/DCS_enum_AI 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