Page 1 of 1

Help!! Locked door sound

Posted: Thu Jun 10, 2004 2:58 pm
by Kate
Help I need a big strong man's brain (that should get a few replies) :lol:

I have a door I dont want to be opened at all. I gave it a classname func_door I gave it a targetname door1. I placed a trigger use on the front side of the door that players would approach from. I gave the trigger the following key/values:

classname trigger_use
target door1
targetname door_locked

I then placed the following line in my script file:

exec global/door_locked.scr::lock

Now when i try to use (open) the door I exit the map and get sent back to the main mohaa screen.

What have I done wrong? should there be more lines of code in the script file that I have missed out?

I am totally stuck on this I tried searching for help now I am reduced to biting my nails.

Any help will be greatly appreciated

Thanks - Kate

Posted: Thu Jun 10, 2004 3:27 pm
by Ric-hard
Maybe u forgot to set it to TARGETED in the doors properties, there is a checkbox for it .

Posted: Thu Jun 10, 2004 4:19 pm
by lizardkid
well, a door automatically comes with a trigger_use and properties with it, you're probably overloading the script. if you want it to not be opened give it a targetname (just the door, delete your trigger) and use the following line...

$door lock

(i'm just using door as a targetname) if you want to make it accesable later on, use

$door unlock

(sometimes little skinny kids can have strong brains!! :lol: )

Posted: Thu Jun 10, 2004 8:31 pm
by Kate
Thanks Lizardkid that worked a treat 8-)

Lizardkid:
(sometimes little skinny kids can have strong brains!! :lol: )
I know they do :wink: I was just pampering the male ego :lol:

Once again thanks for the help

Kate

door locked

Posted: Fri Jun 11, 2004 1:31 pm
by tltrude
To use the door locked script, it does not even have to be a function type door. That script just looks for trigger_use triggers with the targetname "door_locked". You can have as many as you need and they can all use that same targetname. The only thing that needs to be set in the triggers is "doortype" (metal or wood), although doortype/wood is default.

BTW, large strong men are weak minded! They can, however, become govener of a state, if enough weak minded women vote for them--ha ha!

Re: door locked

Posted: Fri Jun 11, 2004 5:07 pm
by Master-Of-Fungus-Foo-D
tltrude wrote:BTW, large strong men are weak minded! They can, however, become govener of a state, if enough weak minded women vote for them--ha ha!
:D :D :D hilarious! Power to the skinny geek weaklings!

About the governor thing

Id hate to be Arnold's campaign manager when he gets angry.

Prepare to be.. EXTERRRMINATED
Hasta La Vista, BABY

Posted: Fri Jun 11, 2004 5:10 pm
by NACF URBAN
does putting something imediately behind the door create a lock effect too? lol

----------------------
well what about those in the middle that have pretty good minds :?: :wink: