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
Trigger hurt and sound
Moderator: Moderators
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
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.
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.
Last edited by MPowell1944 on Thu Mar 06, 2003 6:35 pm, edited 1 time in total.
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
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
