Page 1 of 1

door open alert

Posted: Thu Jun 30, 2005 5:36 am
by ViPER
I want to flash a light when a door opens in a stock map. How to activate my thread?

Posted: Thu Jun 30, 2005 7:10 am
by Ric-hard
Hi crazy Viper :wink: ,
u can spawn a trigger_use, if its a specific door, can look something like this,

Code: Select all

viper:
local.loonybin = spawn trigger_use
local.loonybin targetname mywifethinksivelostit
local.loonybin.origin = ( 80 500 300 )
local.loonybin setsize ( -30 -30 0 ) ( 30 30 100 )
$mywifethinksivelostit waittill trigger
local.player = parm.other
local.player stufftext "say Its me using the door"
$mywifethinksivelostit remove
wait 2
thread viper

Richard

Posted: Thu Jun 30, 2005 3:21 pm
by Elgan
if it has a targetname u cud maybe do something like

&door waittill door_triggerfield
#

or

$door waittill douse