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???????
trigger damage not working
Moderator: Moderators
-
tuffstuff7
- Captain
- Posts: 265
- Joined: Mon Jan 06, 2003 12:59 am
- Contact:
-
tuffstuff7
- Captain
- Posts: 265
- Joined: Mon Jan 06, 2003 12:59 am
- Contact:
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"
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"
trigger_hurt
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.
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.

