Jump to content
Sign in to follow this  
shark-attack

Event handler  trouble

Recommended Posts

hi all

having problems with event handler

i am using the following to detect gunfire from un suppressed weapons

this addEventHandler ["fired",{if (!(_this select 2 in["M4A1SD","MP5SD","M9SD","AKS74UN","Makarov

SD"]) && !myvar_akFired) then {myvar_akFired=true; _this exec "gunshots.sqs"}}]

it works fine  ... if the player  fires anything but a silcenced weapon the enemy will react ..

however if i manage to avoid detection and go to place a charge at the target .. as soon as i put the satchel down the event handler fires

have tried  adding  "Put"  (weapon class name)

and both PipeBomb and TimeBomb (magazine classname)

to weapons array  but still everytime i  set a charge  the handler is fired

can anyone help with this issue

many thanx  and best wishes for the new year to all ...

EDIT

solved

=====

PipeBombMuzzle

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×