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

Trigger for CfgMusic to play to "person only" not everyone on map / mission

Recommended Posts

so i am adding some OGG (Music) files to the map / mission i am creating and i would like it so if someone is in the trigger it will play to them only not everyone on the map or whatever, i have 4 places setup with music so far and they are at unit places so when someone loads into the game once its done i want them to be able to hear the song

also when they hit certain triggers around the map the song will play to them only. and also if they leave the "trigger radius it will fade out. the song will only play in that "trigger area" is that possible and how would i go about setting up that type of trigger.

like for example if they are driving through the desert and someone hits a trigger it will play a song for them while they are driving through the desert in that prospective trigger radius area.

IF someone else is driving through the mountains it will only play whatever song designated for that trigger to whatever person is driving through the mountains. that type of stuff.

but when they leave the trigger area the music will stop. (radius area)

Share this post


Link to post
Share on other sites

i was just looking at that page here is what i got in my trigger activation section

i have 3 different triggers in parts of the map that have a "music file" attached to each one of them and a hint when they come near that location. but the problem is the 2 closet triggers try to spit out the same data to me where my first trigger is at so something is not right, and when i fly over to that other trigger it does not activate since i got a "civilian" there so i put the trigger further away but it still played the music i want it so no one will hear the same music if someone flys, drives or goes near the trigger except for whatever person went over the trigger.

axis

50 / 50

activation by : anyone

activation type : present

repeating : repeating

Am i forgetting something before _target below?

Activation Expression

null = hint "Welcome There will be Music that plays when you first start, around the map there is triggers for other types of music so enjoy the island."; _target == player"];

Edited by mattchicago

Share this post


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

×