View Single Post
  #16  
Old 01-10-2008, 01:21 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Kristi View Post
if you're talking about having serverside npcs talk to each other even if they're level npc's, give it a name.

on the serverside part, do this
function onCreated() {
mylevelnpc = this;
}

now from any other script serverside, you can call it's public functions by doing mylevelnpc.functionname(); in another npc.
You could also use level vars, couldn't you?
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote