Trigger hurt and sound

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Trigger hurt and sound

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Just point it to a thread that does both using the setthread key / value.
Image
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post 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.
Last edited by MPowell1944 on Thu Mar 06, 2003 6:35 pm, edited 1 time in total.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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
Image
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

I stand corrected. I didn't get much sleep last night, so I might be alittle out of it today. heh.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Really not a big thing ;).
Image
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post 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
Post Reply