Thread: Global Class?
View Single Post
  #5  
Old 06-16-2007, 03:45 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by JkWhoSaysNi View Post
make an NPC called "global" and put your functions in that.

Then you can call global.whatever(); from any script without joining.
I already know this

Having to prefix things with Object.Function() doesn't look as cool as global functions.

Holy crap I just had an excellent idea, since it seems that we have function-objects now, maybe I can create global function object? :O!

Edit: Its not working ;-;

Quote:
Originally Posted by Twinny View Post
The last time I asked Stefan for something like this, he said, "just uses classes " and that being able to edit parent objects or using defined custom data types would be no faster than using join()
Its not about speed, its about the cool features like static variables having internal commands for reading and writing them (which I learned recently).
__________________

Last edited by Inverness; 06-16-2007 at 03:58 AM..
Reply With Quote