• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Sound doesnt playing and a little doubt

Status
Not open for further replies.
Level 4
Joined
Jan 3, 2013
Messages
69
I've been trying to do a storm like :grin:, and it resulted better than expected but the sound i picked its not playing :cry:
Here is the trigger, also, if you have an idea of making a more efficient GUI storm, i will follow it with all pleasure :thumbs_up:
  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • StormEnd Less than 500.00
      • Then - Actions
        • Trigger - Turn off (This trigger)
        • Wait (Random real number between 2.00 and 7.00) seconds
        • Trigger - Turn on StormUp <gen>
        • Player Group - Pick every player in (All players) and do (Camera - Shake the camera for (Picked player) with magnitude 4.00)
        • Sound - Play RainOfFireTarget1 <gen>
      • Else - Actions
        • Environment - Set fog to style Linear, z-start 500.00, z-end StormEnd, density 0.75 and color (0.00%, 0.00%, 0.00%)
        • Set StormEnd = (StormEnd - 50.00)
  • StormUp
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • StormEnd Greater than 4000.00
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Wait 1.00 seconds
          • Trigger - Turn on StormDown <gen>
          • Player Group - Pick every player in (All players) and do (Camera - Stop swaying/shaking the camera for (Picked player))
        • Else - Actions
          • Environment - Set fog to style Linear, z-start 500.00, z-end StormEnd, density 0.75 and color (0.00%, 0.00%, 0.00%)
          • Set StormEnd = (StormEnd + 200.00)
EDIT:I found out the solution, 3D sounds cant be played with "Play Sound"
 
Last edited:
Level 4
Joined
Jan 3, 2013
Messages
69
Something like this maybe? PS: It's a bit funny using a timer for just 1 second
  • StormDown Timer
    • Events
      • Time - StormTimer[1] expires
    • Conditions
    • Actions
      • Trigger - Turn on StormUp <gen>
      • Player Group - Pick every player in (All players) and do (Camera - Shake the camera for (Picked player) with magnitude 4.00)
      • Sound - Play RainOfFireTarget1 <gen>
  • StormUp Timer
    • Events
      • Time - StormTimer[2] expires
    • Conditions
    • Actions
      • Trigger - Turn on StormDown <gen>
      • Player Group - Pick every player in (All players) and do (Camera - Stop swaying/shaking the camera for (Picked player))
 
Status
Not open for further replies.
Top