Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
lonesoldier

How to activate a trigger when player takes damage?

Recommended Posts

Hi peeps,

 

Did a search and had no luck. Basically I wan't to know how I can trigger a .ogg sound file I have where he says "taking fire!" when the player, or other playable characters (co-op mission) are hit?

 

Any help appreciated. Thanks.

Share this post


Link to post
Share on other sites

Thanks. However I have zero experience with event handlers. If you have the time could you give me a basic run down on how to use this event handler and have it play a sound?

Share this post


Link to post
Share on other sites

Here you go, this is an example for this eventhandler: https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HandleDamage

player addEventHandler["handleDamage",{
	hint str(_this select 2); //This hints the damage taken, each time you get shot
}];

What eventhandler are available, and what information is passed to the _this array, to take information from can be found as tankbuster wrote here:https://community.bistudio.com/wiki/Arma_3:_Event_Handlers

 

Regards Arkensor

  • Like 1

Share this post


Link to post
Share on other sites

×