Quote:
Originally Posted by Stefan
Why not simply use MyFunctionsNPC.function() ?
|
Yes it
works and I do use it in the cases where I need to, but its not preferred when you have lots of different groups of functions in different weapons/objects or classes. And it just looks bad next to the globals that Graal has
For the classes, rather than having to join small utility classes to everything that uses it you can just join it to the Control-NPC and then everything can use it, including the random LAT with little knowledge of scripting.
Having globals puts everything on the same plate and would make it easier for people unfamiliar with the system. I don't think its asking much to make public functions in the Control-NPC global (and those with a global_ prefix in the function name only?). Since they would only work in the Control-NPC it would the massive chaos of someone not knowing where the global function is declared.