Jump to content

Script to detect if contermeasuer flares fired

Recommended Posts

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)

This code is for a unit firing guns in a handler.

Edited 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

Link to comment
Share on other sites

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: Scripting Wiki, Something...

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread), SLMOD, IADScript, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...