Thread: Block Scripting
View Single Post
  #7  
Old 08-22-2001, 08:04 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
here is an example
of how to open a certain door from something u touch
(not tested)
the 'switch'
NPC Code:

if (playertouchsme) {
for (this.i=0;this.i<npcscount;this.i++) {
callnpc this.i,open1;
}
}



then the door

NPC Code:

if (timeout) { showlocal; }
if (open1) { hidelocal; timeout=10; }
if (playerenters) { showlocal; }



easy =) callnpc basically sets a variable to true in another npc
trigger action is the same but its for x,y instead of calling by index
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote