It's possible that someone's already done this,
but if they have,I haven't seen a working example.
Here's where I am,in any case.
Basically I randomized the firing sound of a weapon,
via this script,with the fired EH:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
_array = _this select 0
_unit = _array select 0
_weapon = _array select 1
?!(_weapon == "SOPMODm4"):exit
_Fire = ["M4a","M4b","M4c"] ;
_Soundsource = "EmptyDetector" createVehicle [0,0,0]
_Soundsource setpos [getpos _unit select 0,(getpos _unit select 1)+2,(getpos _unit select 2)+1];
_sound = random count _Fire
_sound = _sound - (_sound % 1)
_Soundsource say (_Fire select _sound)
Here's an example of the result.
What I need to know,is if it's possible to transfer that
script directly into the Fired Eh,rather than just "triggering"
it.If you see what I mean.
You may not hear it in the clip,but there's a tiny delay
between "click" and sound.I was hoping,if the code
could be executed from within the EH,it might speed things
up.So,can it be done?
I'd appreciate any help or advice.