Digital Paint Discussion Board

Development => Mapping => Topic started by: Cobo on June 22, 2005, 10:04:11 PM

Title: question
Post by: Cobo on June 22, 2005, 10:04:11 PM
my question is that how can i make a trigger like the one on splatmesa, that you shoot and opens a door or something.

so if yo know please tell me.
Title: _
Post by: IronFist on June 22, 2005, 10:29:04 PM
Post removed
Title: Re: question
Post by: Cobo on June 22, 2005, 10:33:31 PM
what do you mean by a health.  ???
Title: Re: question
Post by: Cobo on June 22, 2005, 10:52:24 PM
oh i see what you mean now. ;D

but where do i set the place i have to shoot at.
Title: Re: question
Post by: jitspoe on June 22, 2005, 11:14:11 PM
http://www.gamedesign.net/node/955#func_button

Make a func_button, give it a health value.  Give it a target, say "door1", then make a door with "targetname" "door1".  When you shoot the button, it should open the door.  In the future, please use more descriptive topic names. :)
Title: Re: question
Post by: Cobo on June 22, 2005, 11:24:08 PM
ok... and how do i make like an animation of the door opening.
Title: Re: question
Post by: Cobo on June 22, 2005, 11:31:03 PM
and to give a target to the button i write this?

key: target
value: door1
Title: Re: question
Post by: jitspoe on June 23, 2005, 12:01:06 AM
If you're using BSP, just click on the + button on the entities window, and add target under key and door1 under value, then for the door use targetname door1.
Title: Re: question
Post by: Cobo on June 23, 2005, 01:00:12 AM
ok i have a little problem, instead of the door being oppened when i shoot the button, the button oppens when i shoot the button!!!

moving on

i would like to know if there is a way to make the door rotate downward so it becomes a ramp, and not rotate on his axis, but to rotate on his side.
like a book.  :-\
Title: Re: question
Post by: Eiii on June 23, 2005, 03:31:29 AM
Hm. A door rotating to become a ramp is a cool idea... func_door_rot, btw. look at www.gamedesign.net , lots of entitiy help.
Title: Re: question
Post by: jitspoe on June 23, 2005, 10:59:40 AM
There's a spawnflag (one of the checkboxes) that tells a rotating door which axis to rotate on.
Title: Re: question
Post by: Cobo on June 23, 2005, 11:25:27 AM
ok but how do i fix the problem of the button that opens a button.
Title: Re: question
Post by: jitspoe on June 23, 2005, 01:21:56 PM
Eh, the button will move when you shoot it, but it should also make the target move.  In bsp, you should see a purple arrow pointing from the button to the door if you have the target/targetname set up properly.  If not, you probably set something up wrong -- added the fields to the wrong entity or made a typo.
Title: Re: question
Post by: Cobo on June 23, 2005, 02:17:25 PM
i see the purple arrow. but the only thing that moves is the button, i did the entities from scratch like 3 times and still nothing.
Title: Re: question
Post by: Eiii on June 25, 2005, 10:35:14 PM
Then you might want to make sure that the target is doing something when trigged.
Title: Re: question
Post by: jitspoe on June 27, 2005, 02:25:51 PM
If you're doing a rotating door, you need to have an origin brush in it (a brush with the origin texture) so it knows where to rotate.  Try making a door without a button triggering it -- it should automatically open when you step close to it.  If not, then there are other issues and it won't work with a button, either.
Title: Re: question
Post by: Cobo on June 27, 2005, 04:50:03 PM
well i kind of gave up with that idea, it was too complicated :-\ .
and i wouldnt post it anyway.
the idea of the map was to make 2 ways to the opponents flag one was the fast one in wich you should shoot a button on your base and run the fastest as you can to make it to the other way this  way is the fastest but i also exposes you a lot.
the other way was without hurries and you werent exposed at all, unless you meet face to face with the opponent ofcourse :P.
anyway ty all for listening.