Trigger/Relay question

Discussion in 'Mapping Questions & Discussion' started by Open Blade, Nov 11, 2008.

  1. Open Blade

    Open Blade L7: Fancy Member

    Messages:
    439
    Positive Ratings:
    34
    I have a func door (spawns as open) to a small room which holds a RED sentry. I want Blu team to be able to close the door. I only want the trigger to close the door just one time and keep it closed until end of round. I'm not doing this right. Here's what I got.

    Trigger Multiple:
    Name - Red Sentry Door Trigger
    Start Disabled - no
    Filter Name - bluteamfilter1

    Outputs: OnStartTouchAll, Red Sentry Door Relay, Enable, Delay 1, Fire Once

    Relay
    Name - Red Sentry Door Relay
    Start Disabled - no

    Outputs: OnTrigger, Red Sentry Door Func, Close, Delay 2, Fire Once
    Inputs: Red Sentry Door Trigger, OnStartTouchAll, Enable, Delay 1, Fire Once

    Func Door
    Name - Red Sentry Door Func
    everything else is default except -1 on door closes by itself

    Inputs: Red Sentry Door Relay, OnTrigger, Close, Delay 2, Fire Once




    What the heck am I doing wrong here? I spawn as blu and run to trigger but when I go look at the door, it's still open.
     
  2. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    The mistakes you made is that the trigger should trigger the relay and not enable it. Now it only enables the relay to be used when the trigger is touched but the relay never will be triggered. just change enable to trigger there.
     
  3. Open Blade

    Open Blade L7: Fancy Member

    Messages:
    439
    Positive Ratings:
    34
    Thanks for the help. That worked, the doors now close and stay closed.

    Another quick question for ya.

    The sounds are not working correctly.

    I have an Ambient Generic sound (named Red Sentry Sound). It's a bell that sounds off when the BLU team captures that area (not a control point) (setting off the trigger) and closes the door. I only want that sound to play once when that area is captured and never again. So I set up like this?

    RELAY:
    Outputs - OnTrigger, Red Sentry Sound, PlaySound, Delay 0, Fire Once
    Outputs - OnTrigger, Red Sentry Sound, StopSound, Delay 2, No


    Right now, the bell goes off when I hit that trigger and the door closes but the sound keeps playing and never stops. How do I fix that? Thanks.
     
    Last edited: Nov 11, 2008
  4. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    In the flags of the ambient_generic, make sure it's set to "not looped"


    Some sounds are made to loop, regardless of this setting, so this might not fix it.
     
  5. Open Blade

    Open Blade L7: Fancy Member

    Messages:
    439
    Positive Ratings:
    34
    No, they are NOT looped but they still continue to play without stopping once they are triggered. I don't think this sound is supposed to loop. It's the bells when a train comes.

    Actually, I found something else I am going to try. On the Func_door there is an option for Start and Stop sounds for when door opens and closes. I just hope the sound radius can be enlarged to the trigger area so they know they tripped the door.
     
    Last edited: Nov 11, 2008
  6. TheDarkerSideofYourShadow

    TheDarkerSideofYourShadow L10: Glamorous Member

    Messages:
    792
    Positive Ratings:
    144
    Question, why use a trigger_multiple and a relay rather than just a trigger_once?