Page 1 of 2

SP Help: Make A Door Stay Closed until triggered

Posted: Sun May 02, 2004 10:33 pm
by Lone_Rebel
I have almost finished my first single player map but I need a little help. I would like to make it so the player cannot continue to the next part of my map until they get explosives. I already set up a trigger for the player to get explosives, and that all works, I just need to know how to impliment the "door wont open til you do this" thing, Thanks

Posted: Sun May 02, 2004 10:46 pm
by kai0ty
put a clip infront of the door and when he gets the explosives, remove it.

Posted: Mon May 03, 2004 1:42 am
by blue60007
give it a targetname of oh say door1

add between prespawn and spawn:

exec global/door_locked.scr

then after spawn do:

$door lock

then after you set the bomb do:

$door unlock

you could also put a trigger over the door and print 'You need to set the bomb!', or similar...

Posted: Mon May 03, 2004 1:44 am
by Lone_Rebel
my god its so simple! MUAHAHAHA oh Thanks lol :D

Posted: Mon May 03, 2004 1:47 am
by blue60007
hehe, here is an example:

Code: Select all


level waittill prespawn

exec global/door_locked.scr

level waittill spawn

$door lock


my_bomb_trigger:

$door unlock

$my_bomb_door_message nottriggerable//disables the trigger
end
//add bomb and objective stuff


my_bomb_door_message:

//this should be trigger_use

iprintln "You need to set the bomb!"
end

message

Posted: Mon May 03, 2004 8:42 am
by tltrude
The door itself can do the message, so there is no need for a seperate trigger and script thread.

Key: message
Value: Find explosives to unlock this door!

Note: Do not put quotes around the value.

It might be more realistic to blow the door open with explosives.

Posted: Mon May 03, 2004 9:48 am
by jv_map
You don't even need the door_locked.scr :)

Posted: Mon May 03, 2004 9:31 pm
by blue60007
jv_map wrote:You don't even need the door_locked.scr :)
oh :oops:


tltrude, wouldn't that always display the message, or just when it's locked?

Posted: Mon May 03, 2004 10:54 pm
by Lone_Rebel
Its Okay, I got it all done. I was thinking the blow up the door thing, but I am sick of working on this map lol. Also I just really wanted to hold the player away from the next area because that door is the first one you see. Anyway Thanks guys, lol if anyone wants to check out my map email me at lone_rebel_bia@yahoo.com (Just remember this is my first attempt at single player :wink: )

bored lol

Posted: Tue May 04, 2004 12:20 am
by Lone_Rebel
Hey Everyone I got bored and made a lil movie with pics from the map, if you would like to see it go to
http://geocities.com/lone_rebel_bia/mohmovie.html

Posted: Tue May 04, 2004 1:09 am
by blue60007
Looking good! Kinda of a deathly looking map :shock:

Posted: Tue May 04, 2004 2:04 am
by Lone_Rebel
naaaah thats just my death room lol

Download Link

Posted: Tue May 04, 2004 2:21 am
by Lone_Rebel
Well my website has screwed up but I can still upload files so here is a link to download the map if you want it...... http://bb.1asphost.com/lonemaps/user_bia.pk3 If you download it tell me what you think! (constructive critisism only :wink: )

Posted: Tue May 04, 2004 2:26 am
by blue60007
Lone_Rebel wrote:naaaah thats just my death room lol
ah I see...

Posted: Tue May 04, 2004 2:29 am
by Lone_Rebel
fixed the link to map in previous post...... OH! for the readme http://bb.1asphost.com/lonemaps/READMEFIRST!.txt JUST A NOTE: THIS IS A SPEARHEAD MAP SO PLACE IT IN MAINTA