Jump to content

Play Audio for Client


NineLine
 Share

Recommended Posts

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

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

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 10 Pro, Intel i7-8700k@4.7GHz, 32GB DDR4 3200 RAM, Gigabyte Z370 AORUS Ultra Gaming, 1TB Sabrent Rocket NVMe, Samsung 3*1TB HDD (RAID 0), GTX1070 G1, Thrustmaster HOTAS WARTHOG + Saitek Pro Flight Pedals + TrackIR5, ACER 30" 4K 60FPS GSync Display

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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