[SOLVED] How do I play a noise from a trigger?

Discussion in 'Mapping Questions & Discussion' started by Salty Spy Main, Aug 29, 2019.

  1. Salty Spy Main

    Salty Spy Main L1: Registered

    Messages:
    16
    Positive Ratings:
    0
    I wanted to play a noise such as the frying pan sound effect from a trigger multiple. Is that possible?
     
  2. Izotope

    aa Izotope Never releases maps

    Messages:
    658
    Positive Ratings:
    670
    Yes.
    Do you want everybody on the server to hear this sound, players nearby, or just the player entering the trigger?

    Everybody:
    OnTrigger | tf_gamerules | PlayVO | <soundname.wav>

    Players nearby: (For this, you need an ambient_generic entity with your pan sound specified)
    OnTrigger | <name of your ambient_generic> | PlaySound

    Only the player entering the trigger: (For this you need a point_clientcommand entity)
    OnStartTouch | <name of your command entity> | Command | playgamesound sound.wav
     
    • Agree Agree x 1