ED Team NineLine Posted November 1, 2012 ED Team Share Posted November 1, 2012 Is it possible to play audio when an actual person fires, say a Maverick, much like the AI might call out they are firing a Mav? Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Megagoth1702 Posted November 3, 2012 Share Posted November 3, 2012 Only with the use of "slmod" on the server. There is a script where you define: If units "1,2,3,4" release weapon "maverick" then play audio file "RIFLE!". I don't know the details, go check out the slmod thread! http://forums.eagle.ru/showthread.php?t=80979 [sIGPIC][/sIGPIC] System specs:2500k @ 4.6 GHz 8GB RAM HD7950 OC'd Win7 x64 Posting tracks to make your DCS better - attention bump incoming! Link to comment Share on other sites More sharing options...
Speed Posted November 3, 2012 Share Posted November 3, 2012 To make flag 101 go true (so that an audio message could be played) whenever someone fires a maverick, then a few secs after start of the mission (assuming blue coalition): if slmod then slmod.units_firing{ init_units = {"[blue]"}, flag = 101, weapons = { "AGM-65D Maverick", "AGM-65H Maverick", "AGM-65G Maverick", "AGM-65K Maverick" } } end Additionally, if you want a chat message displayed that identifies the shooter, use this instead: if slmod then slmod.units_firing{ init_units = {"[blue]"}, flag = 101, weapons = { "AGM-65D Maverick", "AGM-65H Maverick", "AGM-65G Maverick", "AGM-65K Maverick" }, msg = "%s: RIFLE!", display_units = "i", display_time = 5, display_mode = "chat", coa = "blue" } end If this doesn't work, it could be that the names of the Mavericks have changed. To check that they are still the same names as the ones in the scripts above, fire a Maverick, then look in C:\Users\<Your Account Name>\Saved Games\DCS\Logs\debrief.log. Intelligent discourse can only begin with the honest admission of your own fallibility. Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/ Lua scripts and mods: MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616 Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979 Now includes remote server administration tools for kicking, banning, loading missions, etc. Link to comment Share on other sites More sharing options...
ED Team NineLine Posted November 5, 2012 Author ED Team Share Posted November 5, 2012 So this is only for slmod right now? Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
ED Team NineLine Posted November 5, 2012 Author ED Team Share Posted November 5, 2012 This worked like a charm, although the sound didnt play, so I will have to look into that, but the text message popped up. Thanks again! Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Quax456 Posted November 6, 2012 Share Posted November 6, 2012 This function only raise the Flag #101 when this action will happen. You have to set a switched trigger in you mission when 101 comes true and as action soundmessage and flag 101 off. My Rig: Windows 11 Pro, Intel i7-13700k@5.4GHz, 64GB DDR5 5200 RAM, Gigabyte Z790 AORUS Elite AX, 1TB Samsung EVO 970, RTX4080, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals, LG 32" 4K 60FPS, ACER 30" 4K 60FPS GSync Display, HP Reverb G2 V2 Link to comment Share on other sites More sharing options...
ED Team NineLine Posted November 6, 2012 Author ED Team Share Posted November 6, 2012 This function only raise the Flag #101 when this action will happen. You have to set a switched trigger in you mission when 101 comes true and as action soundmessage and flag 101 off. Got ya, thanks! Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
ED Team NineLine Posted November 7, 2012 Author ED Team Share Posted November 7, 2012 Is there a way to play a sound from the code example above? Not with a separate trigger, but with something added right into the script? Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Recommended Posts