TheTrooper Posted September 4, 2019 Posted September 4, 2019 (edited) Hi All, is there a script where can detect if a unit has fired flares inside a trigger? A bit like the following: Handler = {} function Handler:onEvent(event) if event.id == world.event.S_EVENT_SHOOTING_START and event.initiator == Unit.getByName('player') then trigger.action.setUserFlag('200', true) end end world.addEventHandler(Handler) This code is for a unit firing guns in a handler. Edited September 4, 2019 by TheTrooper not complete ----------------------------------------------- Intel® Core™i7 Quad Core Processor i7-6700 (3.4GHz) 8MB Cache | 32GB HyperX FURY DDR4 2133MHz | MSI GeForce RTX 2070 ARMOR 8G |SSD 1TB 970 EVO Plus M.2
Grimes Posted September 4, 2019 Posted September 4, 2019 To my knowledge the countermeasures are not accessible. The signal flares from KA-50 or Mi-8 *might* be, but I have never checked. 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