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
Spawn a "killable" trigger
Moderator: Moderators
Damage
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
local.t spawnflag 128
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
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
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:
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
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 :-/
