Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Sc0rc3d

Music on special Event

Recommended Posts

Hi Guys,

damn 3 Days, 3 Threads I hope other guys will help my Question too. :D

I hope its possible in Arma to play a Sound (Track 01 Defcon Three from the Trigger Menu) on an Event in my Case gun fire.

I think the Event handler can do that but it looks very difficult to handle i really need to add every weapon who is in use in my mission

and any Ammunition too? Or i just read/talk shit. :D

Share this post


Link to post
Share on other sites

People hate music in missions. Mission designers love music in missions.

Do you want to play the song the first time anyone shoots or every time anyone shoots? If it's the first time I'd suggest a trigger waiting on a variable and eventhandlers which aren't that bad. If it's every time I'd suggest buying a bridge and jumping off it. :)

firedIndex = player addEventHandler ["fired", {itsOn = true; publicVariable "itsOn";}];

Trigger with condition of:

!isNil "itsOn"

onAct of:

player removeEventHandler ["fired", firedIndex];

Then Effects button have Track 01 selected.

Think that should work.

Share this post


Link to post
Share on other sites

Hi kylania and Thanks again. ;)

Yes One time is fine. I just hope nobody will shot before there is an enemy player. I Hope People will love music in missions, how can i otherwise create atmosphere when not with music:D

In the Singleplayer it works fine but i think not on Multiplayer. I think i replace addEventHandler with addMPEventHandler that should do the job.

And one more stupid question by me. In my Mission (TvT) all be Humen (since a few AI Base guards) maybee a Killed by who counter will not the worst idea to track a bit what happends. You think this will work on MP?

This to all unity in the init (damn 30 Units ^^)

this addMPEventHandler ["MPKilled",{nul=[_this] call fn_whokillwho}];

fn_whokillwho.sqf

private ["_vic","_kill"];

_vic = _this select 0;
_kill= _this select 1;

hint format ["%2 was killed by %1",_kill,"_vic];

greetings

Sc0rc3d

Share this post


Link to post
Share on other sites

The music most people hate are 4 minute long AC/DC or CCR songs that start playing immediately when you're supposed to be planning the OP but can't because you can't hear anything over Thunderstruck.

addMPEventHandler I think only works for the new MPRespawn and MPKilled, not all the old ones.

There's been a post in the last week or so about that kill counter thing, might look for that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×