View Single Post
  #3  
Old 09-23-2005, 08:12 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
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^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..