Thread: Block Scripting
View Single Post
  #9  
Old 08-23-2001, 02:39 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Quote:
Originally posted by 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
wow I will have to play with that. One thing, I was informed hidelocal and showlocal arent used anymore
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote