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();
}
}