Uchronic
21st November 2005, 11:50
Hello,
I'm trying to create in a map an alert when a player walks nearby an objective.
To be more specific, I'd like to hear a dog barking when a player is approaching it.
So I've created this :
// entity 5
{
"classname" "target_speaker"
"origin" "576 -192 64"
"noise" "sound/world/dog_01.wav"
"scriptname" "dog"
"targetname" "dog"
"spawnflags" "2" //looped_off
"wait" "5"
}
// entity 6
{
"wait" "-1"
"target" "dog"
"classname" "trigger_multiple"
// brush 0
(...)
The result is : no sound when the map starts, the dog starts barking when the player is entering the trigger brush, but the dog never stops barking.
I know I shouldn't have played with that kind of dangerous dog, but I'd like to find to stop it when the player is not anymore in the trigger brush.
Any ideas?
I'm trying to create in a map an alert when a player walks nearby an objective.
To be more specific, I'd like to hear a dog barking when a player is approaching it.
So I've created this :
// entity 5
{
"classname" "target_speaker"
"origin" "576 -192 64"
"noise" "sound/world/dog_01.wav"
"scriptname" "dog"
"targetname" "dog"
"spawnflags" "2" //looped_off
"wait" "5"
}
// entity 6
{
"wait" "-1"
"target" "dog"
"classname" "trigger_multiple"
// brush 0
(...)
The result is : no sound when the map starts, the dog starts barking when the player is entering the trigger brush, but the dog never stops barking.
I know I shouldn't have played with that kind of dangerous dog, but I'd like to find to stop it when the player is not anymore in the trigger brush.
Any ideas?