SP Help: Make A Door Stay Closed until triggered

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

Moderator: Moderators

Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

SP Help: Make A Door Stay Closed until triggered

Post 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
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post by kai0ty »

put a clip infront of the door and when he gets the explosives, remove it.
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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...
Image
Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

Post by Lone_Rebel »

my god its so simple! MUAHAHAHA oh Thanks lol :D
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

message

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

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You don't even need the door_locked.scr :)
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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?
Image
Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

Post 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: )
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

bored lol

Post 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
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Looking good! Kinda of a deathly looking map :shock:
Image
Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

Post by Lone_Rebel »

naaaah thats just my death room lol
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

Download Link

Post 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: )
Last edited by Lone_Rebel on Tue May 04, 2004 2:28 am, edited 3 times in total.
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Lone_Rebel wrote:naaaah thats just my death room lol
ah I see...
Image
Lone_Rebel
Sergeant
Posts: 72
Joined: Sat Jul 05, 2003 11:39 pm
Location: USA
Contact:

Post 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
It's not whether you win or lose... It is how many enemies you take down with you that counts.
Image

Lone's MOH Maps
Post Reply