Jump to content

finicu

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About finicu

  • Rank
    Rookie
  1. Thank you! It works perfectly! Thanks a lot for the help ;) EDIT: And thanks a lot for linking the event scripts, they will help a lot in the future!
  2. Hi! Thanks, the script works! Also, yes, I am aware that naming sounds that way will mean bad things. I have run into a small problem - When the player dies, the player loses the action. Not just that, but if one of the player has the option and is looking at someone else with the action, that player will get 2 of those actions. Is there another way to respawn players so that they don't lose the action when they die? (or respawn)
  3. Hi. I want to add a custom action to a player that, when triggered, will play a custom sound "sound1.ogg" inside my mission file\music\ folder. My description.ext works properly, here it is: class CfgSounds { sounds[] = {01,02}; class 01 { name = "01"; sound[] = {"music\sound1.ogg", db+10, 1.0}; titles[] = {0,""}; }; class 02 { name = "02"; sound[] = {"music\sound2.ogg", db+10, 1.0}; titles[] = {0,""}; }; }; Note that sound2.ogg is not used yet. In the init field of the player that can play the sound, I have tried to make the custom action: this addAction ["Play Sound", this say3D "01"] but here's the problem: when I run the scenario, the sound is played at the beginning, right after the players spawn in, and there is no custom action on the player. If I forgot to add anything, please ask, this is my first post so I might have missed something...
×