Page 1 of 1

how do i lock a door!

Posted: Tue Aug 19, 2003 11:46 am
by chad
okays i have got a room with my door that i want locked but i dont want it to not do anything by putting thg the texture there and not making it open i just want it locked so it makes the noise like it's locked

doorlocked

Posted: Tue Aug 19, 2003 12:51 pm
by tltrude
Place a trigger_use in front of the door and give it Key: $targetname and Value: door_locked. Then in your script under "level waittill prespawn" put this line:

exec global/door_locked.scr::lock

Now you can put as many of those triggers as you like around the map. If you dont have a script, the one below will do for now. Just change the name of the map in it and save it as "yourmapname.scr". It goes in the same folder as your bsp file.

Code: Select all

main:

level waittill prespawn

	//*** Precache Dm Stuff
	exec global/DMprecache.scr
	exec global/door_locked.scr::lock
	level.script = maps/dm/yourmapname.scr  // Change this
	exec global/ambient.scr mohdm7 // Background sound

level waittill spawn

end

locked doors

Posted: Wed Aug 20, 2003 7:08 am
by chad
okays i haven't done any kind of scrpiting or anything like that b4 so if you could expllain this is terms for a dummie that would help.

thanx

Posted: Wed Aug 20, 2003 5:21 pm
by Alcoholic
My advice would be to read through all of Bjarne's excellent scripting tutorial.

http://www.planetmedalofhonor.com/rjuka ... guage.html

:wink:

Posted: Thu Aug 21, 2003 6:45 pm
by jv_map
If your door actually is a func_door or func_rotatingdoor, you can simply type key / value:
lock / [no value]

8-)