new error
foreach : type string expected code
===========================
also
the EH works on player unit if called from his init
this addEventHandler ["fired",{if (!(_this select 2 in ["M4A1SD","MP5SD","M9SD","AKS74UN","MakarovSD"]) && !myvar_akFired) then {myvar_akFired=true; _this exec "gunshots.sqs"}}
however if i add pipebomb to the weapons which will not activate the trigger ["M4A1SD","MP5SD","M9SD","AKS74UN","MakarovSD";"PipeBomb"]) it fails to recognize them
so if a player places a charge the EH is fired .. have tried with timeBomb no change .. anyone no of a solution ??