OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: MeltedAd on 13 Jul 2010, 15:03:20
-
I have just got Operation Arrowhead and am enjoying it very much.
I have a scene with three AA crews lying around listening to music
My questions are
1/ I have a trigger called FXradio which plays the music from a radio.
The Music is one of the trigger sounds in the trigger, radio Music 2 I think which seems to be a looped sound.
This works fine until I want to end the music playing.
The Trigger called FXradio should end when Alarm trigger is activated
My question is how do I end this music.
I have been unable to find the editor name of the music in question so have been unable to script the music playing/stopping. I just can not seem to end the trigger. I don't want to use fade sound as I have other sounds going.
2/ This question also regarding the said AA crew. I want alarm trigger to activate when enemy is detected which is simple but I want them to detected air units. I have tried to group the enemy plane to the trigger but they all still sit about as the plane flys up and down and ignore it unless it attacks.
Well there are my question I hope I have not confused everybody too much
-
1) Give the trigger a name and delete it with the following code:
deleteVehicle myTrigger
2) You want them to react when they spot an anemy, right? There seems to be a word missing in your post. In that case:
- Change the trigger type to "switch" by opening it up in the editor.
- Give the AA-unit a dismissed waypoint followed by a cycle waypoint and a search and destroy waypoint (for example)
- synchronize (F5) the switchtrigger with the cycle waypoint
- The units will start out in dismissed mode, and will remain there until the trigger is fired. They will then change behaviour to search and destroy mode (or whatever waypoint you gave them last).
-
Thank you very much for the swift reply. I have tried the deletevehicle and have a partial sucess. the radio music does indeed stop but not straight away, it seems that the loop must end first.
So it there a way to stop a sound playing or can you fadesound one single sound and not any others?
Forgive me for any dumb questions
-
You can mute the music. See:
http://pastebin.jonasscholz.de/885
-
Thank you