Thread: Class question
View Single Post
  #6  
Old 11-08-2006, 08:34 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Quote:
Originally Posted by wild8900 View Post
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.
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote