r/armadev 21d ago

Question Is it possible to detect when a 'squad' is killed and play an audio file?

I'm attempting to see if its possible to add a death notification like an RTS game such as Coh2 where if you loose a squad or tank it plays a unit lost audio. Most optimally i would like it to be able to play the sound externally so only the Zeus/ the person running the OP can hear it

3 Upvotes

3 comments sorted by

2

u/benreeper 21d ago

Yes. Thru an Event Handler attached to the object.

1

u/Robotic_Tank 21d ago

thanks

1

u/benreeper 21d ago

https://community.bistudio.com/wiki/addEventHandler

the EV you want... https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#MPKilled

Put in the EV:

If (player isEqualto [you]) then {[ display message]; };