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