Doors and triggering sounds Created 20 years ago2004-03-15 07:46:09 UTC by Dizzy Devil Dizzy Devil

Created 20 years ago2004-03-15 07:46:09 UTC by Dizzy Devil Dizzy Devil

Posted 20 years ago2004-03-15 07:46:09 UTC Post #19406
My first question pretains to doors.

It never fails, I create a door and then a button to trigger it to open. But the darn thing never closes. I saw in the properties delay before close (-1 stay open). That was set to 4. But the door never closes.

Second I know that you can set ambient_generic and target game_playerjoin to play a sound when a player enters the game. What about when a player is killed, or respawns, and when the match ends.

When I was looking around I saw these:

game_playerdie
game_playerkill
game_playerjoin
game_playerspawn
game_playerleave

So HL has them, how do it trigger them now?
Posted 20 years ago2004-03-15 07:57:36 UTC Post #19407
The delay thing was probably only for the button - you need to set it for the door itself.

Those game_*s are for names of things:
Special Entity Names

As of Half-Life version 1.0.0.9, there are a few special names that can be given to entities, that will activate those entities in specific circumstances.

They are:
game_playerdie
game_playerkill
game_playerjoin
game_playerspawn
game_playerleave

For example, an entity with a name (targetname) of game_playerdie will be triggered whenever a player dies (and will be triggered by that player).
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 20 years ago2004-03-15 08:22:33 UTC Post #19408
So I name the ambient_generic to game_playerdie and anytime a player dies the dound plays, right?
Posted 20 years ago2004-03-15 10:39:40 UTC Post #19409
Should do. I remember trying these and they didn't work, though.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 20 years ago2004-03-15 11:33:02 UTC Post #19415
I know playerjoin works
Posted 20 years ago2004-03-16 13:22:34 UTC Post #19485
Stil working on the sound but the door nope no workie.. I stays open and does not close intil you hit the button
Posted 20 years ago2004-03-16 13:30:45 UTC Post #19486
Check the door's flags, you must have "Toggle" on or something.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 20 years ago2004-03-16 17:45:05 UTC Post #19503
I do LOL
Posted 20 years ago2004-03-16 20:21:29 UTC Post #19510
lol... that's the problem! toggle = hit button to open, hit again to close
Posted 20 years ago2004-03-18 00:42:07 UTC Post #19642
LOL I got the door to work and Seventh I got the

game_playerdie
game_playerkill
game_playerjoin
game_playerspawn

To work Yea!!!!!!!!!!!!

I do have one more question. I have a room that I want a sound to play repeating but only in the room, not globally.

Got ambient_generic set but no idea how to limit the radius. I tried using the flags.

Medium Radius and not toggled but the sound will not turn on.

Any ideas what I did wrong?

LOL it is the last step before releasing the map :)

oh by the way yes I am looking at the tutorial..... :)

either way I may get my answer :cool:
You must be logged in to post a response.