spawn a kill trigger

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
echo_rancid
Captain
Posts: 264
Joined: Sat Jan 31, 2004 4:31 pm

spawn a kill trigger

Post by echo_rancid »

How would I spanw a trigger that when walked into would kill the player...not suicide though. I want to block the wires off on brest.

Thanks.
Image
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

First, spawn a trigger multiple. Set it to run a thread after a player enters it. In the thread, have the player die then just end the thread. If you don't know how to use a trigger multiple or how to do the thread this is how:

Code: Select all

 local.killspot = spawn trigger_multiple
 local.killspot.origin = ( xxx xxx xxx)
 local.killspot.setsize (-xxx -xxx -xxx) (xxx xxx xxx) // this is the box
 local.killspot setthread mythread

mythread:

local.player=parm.other
local.player kill

end
Post Reply