just to help you out here on the understanding bit
to execute a script, we use lines like
[] exec "scriptname.sqs"
this exec "scriptname.sqs"
[alpha, 3, 5] exec "scriptname.sqs"
basically an array is used to execute a script
[] = empty array
[alpha,3,5] = 3 elements in an array
this = (normally a unit) = a single element array
this first element in an array is seen as being in position 0
a fired event handler that executes a script is actually made up of a 5 element array
element 0 (referred to as _this select 0)
element 1 (referred to as _this select 1)
element 2 (referred to as _this select 2)
element 3 (referred to as _this select 3)
element 4 (referred to as _this select 4)
_this refers to the fired eventhandler array
FOR REFERENCE
The comref entry for fired eventhandlers is incorrect
here's what it actually returns
;;__________ fired eventhandler returns________
_Unit = _this select 0
_weapon = _this select 1
_muzzle = _this select 2
_mode = _this select 3
_ammo = _this select 4
[Unit, Weapon, Muzzle, Mode, Ammo] exec "myfiredeventhandlerscript.sqs"
Muzzle examples are:
M16muzzle
M16grenadelauncher
Mode examples are:
Auto
Single
Burst
-------------------------------------------------------------------------------------
hope that clarifies it a bit for ya
one thing to note, the variable name returned for _ammo, is the actual round fired, this is not always the same as the magazine name