DrummerNL Posted April 30, 2018 Share Posted April 30, 2018 Hi guys, I'm working on a mission where I want a radio message to be sent a minute after I fire my minigun on the gazelle. Is there any way to detect wether the gun has fired and set that as a condition for a trigger? To paint the picture of what I'm trying to achieve: The (multiplayer) mission is to aid a ship radioing to a coastal station that a number of skiff's are approaching him. Fearing they might be boarded, a gazelle is called in to scare off the potential pirates. At some point the gazelle crew gets permission to fire off warning shots in front of the moving skiffs using the minigun. Up to this moment I've got everything working as it should. After the warning shots have been fired off, I want to trigger a radio call, saying the warning shots have had no effect and requesting permission to use lethal force. (ogg file) Anyone here who can help me out with this? Link to comment Share on other sites More sharing options...
Majinbot Posted April 30, 2018 Share Posted April 30, 2018 I dont have the Gazelle so I cant try but something like that and then a trigger with flag 1 as condition for sending a message: Handler = {} function Handler:onEvent(event) if event.id == world.event.S_EVENT_SHOOTING_START and event.initiator == Unit.getByName('[color="Red"]Gazelle[/color]') then trigger.action.setUserFlag('[color="red"]1[/color]', true) end end world.addEventHandler(Handler) PC: i7-13700K - MSI RTX 4080 Gaming X Trio - 32GB DDR5 6200 - VPC MongoosT-50CM3 - VKB GF pro - MFG Crosswind - Msi MPG321UR-QD + Acer XB271HU - TrackIR5 - Quest 3 Link to comment Share on other sites More sharing options...
Recommended Posts