Thread: ughhh help
View Single Post
  #2  
Old 02-22-2006, 12:36 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Warcaptain
now... im making an NPC.. its supposed to trigger a door in the level to open when you touch the npc.. clientside though so it wont open for everyone.
don't know if this would work. Might need to do triggeraction instead. I know triggeraction triggers both serverside and clientside in v4.

npcs[i].trigger("DoorOpen",player.account);

//#CLIENTSIDE

function onDoorOpen(acct) {
if (player.account == acct)
hide();
sleep(time);
show();
}
}