door open alert

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

door open alert

Post by ViPER »

I want to flash a light when a door opens in a stock map. How to activate my thread?
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post 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
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

if it has a targetname u cud maybe do something like

&door waittill door_triggerfield
#

or

$door waittill douse
Post Reply