Oh yeah, that wasn't coppied and pasted from the mission editor, thats just what I wrote here. Now, I coppied and pasted yours, and I think I'm getting warmer, but now I get
if ((this select 3) == "shell/missilename") then {exec "myscript.sqs"} error select : type object, expected array
So I'm not sure that what I'm doing isn't fundamentally wrong somewhere. Here is the arguments for the "Fired" event handler....
"Fired" string:weapon,string:muzzle,string:mode,string:ammo
Here is my full line of code....
this addEventHandler ["fired",{if ((this select 4) == "FLKAW_AIM9L") then {exec "fox2.sqs"}}]
Where "FLKAW_AIM9L" is the name of my ammo. Any clues anybody? I still think its a syntax thingy...