Page 1 of 1
Trigger hurt and sound
Posted: Thu Mar 06, 2003 5:43 am
by rezner
How do i make a trigger that both hurts you and plays a zapping sound
for my electric fence
theres a zapping sound im Unterseitte but i cant find it
Posted: Thu Mar 06, 2003 4:09 pm
by jv_map
Just point it to a thread that does both using the setthread key / value.
Posted: Thu Mar 06, 2003 5:39 pm
by MPowell1944
Find the referenced name of the sound in ubersound.scr (for example, the sound for a fire would be fire_med1) and then follow these steps :
1. Create a trigger_multiple. Give it a targetname, for example, shocktrigger. Then give it a setthread, for example, shock_setup.
2. In your .scr, add this code :
shock_setup:
$shocktrigger volumedamage 25 <--Use the number you want to damage
$shocktrigger playsound soundnamehere <--ubersound referenced name
end
*There, its fixed now.

*
Thats how easy it is. Please post back if you cannot get this to work. Good luck.
Posted: Thu Mar 06, 2003 5:49 pm
by jv_map
Preferrably type an 'end' below the thread

.
Code: Select all
shock_setup:
$shocktrigger volumedamage 25 //<--Use the number you want to damage
$shocktrigger playsound soundnamehere //<--ubersound referenced name
end
Posted: Thu Mar 06, 2003 6:35 pm
by MPowell1944
I stand corrected. I didn't get much sleep last night, so I might be alittle out of it today. heh.
Posted: Thu Mar 06, 2003 8:42 pm
by jv_map
Really not a big thing

.
Posted: Sun Mar 09, 2003 11:31 pm
by rezner
Alright how do i make this script file
i havent messed with this yet and i just want to get this map done