Nealius Posted September 21, 2021 Posted September 21, 2021 I want the AAA barrage to work repeatedly, i.e.: 1. Part of coalition enters zone, AAA barrage starts 2. Coalition leaves zone, AAA barrage stops 3. Part of coalition enters zone again, AAA barrage starts again 4. Repeat process The standard trigger of Quote NO EVENT (Once) --> Part of coalition in zone --> AI Task Push (unit; fire at point) only fulfills item 1. The barrage will not stop. The standard repeatable trigger of Quote NO EVENT (Switched condition) --> Part of coalition in zone --> AI Task Push (unit; fire at point) doesn't allow the barrage to function at all, when it works as a repeatable trigger for every other zone trigger (marker smoke, flares, etc.) How do I get a repeatable trigger with the AAA barrage? 1
Grimes Posted September 21, 2021 Posted September 21, 2021 On the fire at point task add a stop condition. I used flag 1 is true and when all of coalition is out of zone it sets flag 1 true, which ends the task. It is important that in the task you use to assign the task that you set flag 1 to false before assigning the task. Otherwise the flag is still true when the task starts, so it automatically ends. Other ways you can go about it are to use Group.getByName('groupName'):getController():popTask() to end their active task or toggle group AI on/off as needed. 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
Nealius Posted September 21, 2021 Author Posted September 21, 2021 (edited) Okay. I'm slightly lost on the application. Group Triggered Actions 1. Fire at point a. Stop Condition (User flag = 1) Flag Trigger No event (Once) or No event (Switched condition)? 1. Part of coaltion in zone --> Flag true = 1 Barrage Trigger No event (Once) 1. Flag true = 1 --> AI Task Push (fire at point) 1 hour ago, Grimes said: It is important that in the task you use to assign the task that you set flag 1 to false before assigning the task. Where does this part come in? A trigger at the top of the list saying "all of coalition out of zone--> flag false =1? I got them to stop firing when I left the zone, but I couldn’t get them to shoot again when I reentered the zone. Edited September 21, 2021 by Nealius
Grimes Posted September 21, 2021 Posted September 21, 2021 Switch Condition> Part of Coalition In Zone> Flag 1 Off and AI Push Task Switch Condition> All of Coalition out of Zone > Flag 1 On If you had it be "AI Push Task" with "Flag 1 off" directly below it the task would immediately end because for a split second the task is active with the stop condition being met. If you moved flag 1 off above it then the stop condition isn't met when the task starts. 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