| Inverness |
06-16-2007 03:45 AM |
Quote:
Originally Posted by JkWhoSaysNi
(Post 1318270)
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 :whatever:
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
(Post 1318187)
The last time I asked Stefan for something like this, he said, "just uses classes :D" 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).
|