1. Hey there Guest,

    The game servers have moved to semi-dedicated hardware and IPs have changed. Please see front page server widget for up-to-date game server information.

Door locks and unlocks

Discussion in 'Mapping Questions & Discussion' started by THE CHAIRMAN, Nov 6, 2010.

  1. THE CHAIRMAN

    THE CHAIRMAN L1: Registered

    Messages:
    20
    Positive Ratings:
    0
    I am building some trading rooms in which members can hang out trade and not be killed or bothered. I have made buttons and locks that control the doors to keep people out. All is well.. The problem is many leave the game while in the room therefore leaving the room locked and no one else can come in. Then I have to noclip in and unlock the doors.

    Obviously I am a noob and cant figure out exactly how to fix this. I believe I need a trigger that unlocks the door when that trigger is NOT being touched. (room is empty) but i cant seem to get that to work. Any help is appreciated!!

    Thanks... The Chairman
     
  2. Jolly

    Jolly L1: Registered

    Messages:
    26
    Positive Ratings:
    1
    Hey Chairmman

    You got it right with trigger. have a trigger that only is inside the room, and then just set the trigger to unlock the door when noone is touching it :)
     
    • Thanks Thanks x 1
  3. THE CHAIRMAN

    THE CHAIRMAN L1: Registered

    Messages:
    20
    Positive Ratings:
    0
    ya know ive tried that and it doesnt seem to work... im stuck.. I believe it was trigger multiple that would allow me to do that but again..doesnt seem to work.. im missing something...
     
  4. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    I'm assuming you are getting it to work once... Have you checked the "Delay before reset" is set very small (or 0, though I'm not sure 0 would work. don't ask me why I think that, just a funny feeling really). if set too high it'll work, but with a large delay before doing the command again (obviously) or if set to -1 it will behave like a trigger_once.
     
    • Thanks Thanks x 1
  5. THE CHAIRMAN

    THE CHAIRMAN L1: Registered

    Messages:
    20
    Positive Ratings:
    0
    oK..finally figured it out.. Trigger_proximity and onendtouch was the settings that worked for me. Thanks for the input..

    The Chairman
     
  6. skinnynerd

    skinnynerd L2: Junior Member

    Messages:
    57
    Positive Ratings:
    14
    Make a trigger_multiple (default settings) that covers the entire room.

    trigger.OnEndTouchAll -> door.Unlock
     
    • Thanks Thanks x 1