Page 1 of 1

trigger damage not working

Posted: Fri Mar 28, 2003 1:20 pm
by tuffstuff7
ok i am still trying to fig out how to use the trigger thing and am working on a trigger dooor as well as a trigger hurt lol the trigger door is on another post here

here is my script

// new_map2
// ARCHITECTURE: Tuffstuff7
// SCRIPTING: Tuffstuff7


main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "new-map2"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" "Author"
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" "Tuffstuff7"
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "new-map2"

//-----------------------------------------------
// PRESPAWN
//-----------------------------------------------

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr

level.script = maps/dm/new-map2.scr

//-----------------------------------------------
// SPAWN
//---------------------------------------------

level waittill spawn

damage:

$barbwire volumedamage 10

thread fan1
end

fan1:
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$fan1 rotatey 325





$world farplane 10000
$world farplane_color (.333 .333 .333)

exec global/ambient.scr m3l3

end


now on radiant i made a brush in front of the barbed wire

wait 1

setthread damage

targetname barbwire


in the box i see "damage" sets
damage default is 10

did i do these setting wrong or was i supposed to do something else

any helpers???????

Posted: Fri Mar 28, 2003 1:42 pm
by mohaa_rox
You trigger multiple must have a targetname and a setthread, "wait" is optional.

In your setthread:

setthread:
$name volumedamage xxx
end

Posted: Fri Mar 28, 2003 1:44 pm
by jv_map
If you set the 'damage' flag you have to shoot the trigger to activate it.

Posted: Fri Mar 28, 2003 2:06 pm
by tuffstuff7
ummmm ok roxx what you are talking about is in my script??????was what i did in raidant ok? also you have


setthread:
$name volumedamage xxx
end

do i put that set thread in there in the script or does another name go there also name whoudl that be "damage"or "barbwire" going by what i did

ty guys for responding and being "good guys"

Posted: Sat Mar 29, 2003 7:28 am
by mohaa_rox
If you check "damage", means you have to shoot the trigger to activate it. Don't check it.

trigger_hurt

Posted: Sat Mar 29, 2003 12:28 pm
by tltrude
I think you guys are confusing him.

Trigger_hurt does not work, don't use it. Change your trigger to a trigger_multiple. Cut the trigger to fit around your wire if needed.

In it's properties (key N), type:

Key: setthread
value: barbwire_damage

Key: targetname
value: barbwire1

Ok, add this thread to your script after the "end" line under "level waittill spawn":

//--------------------------
// barbwire thread
//--------------------------

barbwire_damage:

$barbwire[local.index] waittill trigger
local.sucker = parm.other
if (local.sucker istouching $barbwire[local.index] == 1)
{
local.sucker exec global/bullethit.scr (0 -1 0) 1 1 1
}
wait 1
goto barbwire_damage

end

//----------------------------

You can take out all that other stuff about damage from your script. If you want more barbwire triggers, set them up the same way and change the targetname to barbwire2, barbwire3, etc...

I hope that works.

Posted: Sat Mar 29, 2003 12:50 pm
by mohaa_rox
Yeah, that's what i meant, use a trigger multiple, not a trigger hurt.