Help!! Locked door sound

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Kate
Colour Sergeant
Posts: 83
Joined: Fri May 28, 2004 12:01 pm

Help!! Locked door sound

Post 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
Did you miss me? ..... Well get a better sight on your gun hehehe
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

Maybe u forgot to set it to TARGETED in the doors properties, there is a checkbox for it .
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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: )
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
Kate
Colour Sergeant
Posts: 83
Joined: Fri May 28, 2004 12:01 pm

Post 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
Did you miss me? ..... Well get a better sight on your gun hehehe
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

door locked

Post 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!
Tom Trude,

Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Re: door locked

Post 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
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
NACF URBAN
Corporal
Posts: 26
Joined: Fri Jun 11, 2004 5:00 pm

Post 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:
Post Reply