OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: HedgeHog on 03 Nov 2008, 12:37:45

Title: When secondary weapon is fired
Post by: HedgeHog on 03 Nov 2008, 12:37:45


When an AA soldier fires with his Stinger, the player flying in the chopper shouts "Watch out!!!".

Now, I know everything about the sound and the text part, but I don't know how to deal with the condition.

Is there a eventhandler needed?

Help me!!!

Thank you in advance! ;) :D
Title: Re: When secondary weapon is fired
Post by: Spooner on 03 Nov 2008, 17:27:19
You need a "FIRED" handler on the shooter or a "INCOMINGMISSILE" handler on the chopper. Depends what you want to detect exactly.

addEventHandler (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=a#6)
List of event handlers (http://community.bistudio.com/wiki/Armed_Assault:_EventHandlers_List)