Ooor we could just have a global functions class that's automatically joined.. >_>
But yeah, I'd love to have a globally joined class.
I'd also like to see the ability to join classes with clientside functions to a player, so we can call them without going to the serverside..
PHP Code:
Player-joined class
//#CLIENTSIDE
public function Dist(myx,myy,gotox,gotoy) {
distx = gotox - myx;
disty = gotoy - myy;
return (distx^2 + disty^2) ^ .5;
}
PHP Code:
NPC Weapon
//#CLIENTSIDE
function onWeaponfired() {
somex = int(random(0,64));
somey = int(random(0,64));
player.chat = player.Dist(player.x,player.y,somex,somey);
}
-Coughs.- Aaanyway..