Digital Paint Discussion Board
Development => Mapping => Topic started 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.
-
Post removed
-
what do you mean by a health. ???
-
oh i see what you mean now. ;D
but where do i set the place i have to shoot at.
-
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. :)
-
ok... and how do i make like an animation of the door opening.
-
and to give a target to the button i write this?
key: target
value: door1
-
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.
-
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. :-\
-
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.
-
There's a spawnflag (one of the checkboxes) that tells a rotating door which axis to rotate on.
-
ok but how do i fix the problem of the button that opens a button.
-
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.
-
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.
-
Then you might want to make sure that the target is doing something when trigged.
-
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.
-
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.