Thread: Control-NPC
View Single Post
  #6  
Old 07-17-2006, 05:23 PM
upsilon upsilon is offline
Shmoo
upsilon's Avatar
Join Date: Dec 2005
Location: Birmingham, Alabama
Posts: 58
upsilon is on a distinguished road
Oh, ok. so in reality... Control-NPC retains the variables, but if its reset, the onCreated event will still be triggered, and the variables will likely be overwritten. I was just using the wrong base class.

Got it. So i would have to check
if (!this.whatever.initialized) {
this.whatever = something;
}
or possibly just remove/comment out the initialization code for Control-NPC local variables, to keep editing or resetting the script from overwritting them. This makes sense.

thanks allot Novo.
__________________
Health nuts are going to feel really stupid someday, lying in hospitals dying of nothing. - Redd Foxx
Reply With Quote