Quote:
Originally Posted by wild8900
Hey, I have one npc spread between alot of levels. I need to make a class that all the npcs can copy to so when I update the class it updates all. How would I do that? I constantly update the script too.
Thanks!
EDIT:
would this work? Btw this is going in an npc in the level so I used gs1. I want the npc to be the class npc basicly...
|
You basically described the function of a class. A class is just a script that you can call upon to use in other scripts. If you put join classname; in a level npc, and you have a class on your server with that name, the level npc will use the script in that class.
Whenever you update the class, it would update the script in that level. Though usually you have to also update the level to refresh the class, but not with everything.