Page 1 of 1

Spawn a "killable" trigger

Posted: Wed Jul 30, 2003 5:36 pm
by Valoche
Hi,

I need to spawn (really can't do it in the bsp), a trigger which will respond to bullets.
Here is how I did:

... scripting here ...
local.t = spawn trigger_multipleall
local.t health 1
local.t target local.m
local.t origin (local.newx local.newy local.mo[2])
local.t thread mine_boom
.. more scripting here ...


This really does not work, the trigger gets activated only when I walk on it.
I tried to set the spawnflags (to 16), but this did not work. Did I miss something obvious ?

Thanks,
Valoche

Damage

Posted: Wed Jul 30, 2003 6:54 pm
by tltrude
If DAMAGE is set, the trigger will only respond to bullets. Damage is "spawnflag" "128" in the editor, so maybe this will work.

local.t spawnflag 128

Posted: Wed Jul 30, 2003 9:46 pm
by Valoche
You were close... :P
It's:
local.t = spawn trigger_multipleall spawnflags 128 health 1

That works, health is set to 1.00, but... it only responds to grenades, bazooka and pistol bash :roll: :roll:

Another idea to fix this new problem ?

Thanks again,
Valoche

Posted: Thu Jul 31, 2003 12:33 am
by nuggets
spawnflags 128 is the right way

try
local.t = spawn trigger_multipleall spawnflags 144 health 1
//this will set projectives on aswell, just incase it's causing problems with the bullet hit

else
local.t = spawn trigger_multipleall health 1
automatically setting health makes it only respond to damage

Posted: Thu Jul 31, 2003 12:33 am
by nuggets
spawnflags 128 is the right way

try
local.t = spawn trigger_multipleall spawnflags 144 health 1
//this will set projectives on aswell, just incase it's causing problems with the bullet hit

else
local.t = spawn trigger_multipleall health 1
setting health automatically makes it only respond to damage

Posted: Thu Jul 31, 2003 6:04 am
by Valoche
Ack.
None works :? I had already tried spawnflags 144 though...

Valoche