Spawn a "killable" trigger

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

Moderator: Moderators

Post Reply
Valoche
Lance Corporal
Posts: 13
Joined: Thu Feb 20, 2003 6:48 pm

Spawn a "killable" trigger

Post 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
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Damage

Post 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
Tom Trude,

Image
Valoche
Lance Corporal
Posts: 13
Joined: Thu Feb 20, 2003 6:48 pm

Post 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
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
Valoche
Lance Corporal
Posts: 13
Joined: Thu Feb 20, 2003 6:48 pm

Post by Valoche »

Ack.
None works :? I had already tried spawnflags 144 though...

Valoche
Post Reply