View Single Post
  #1  
Old 09-01-2005, 05:47 AM
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
Clientside classes

Could tell me how to call a clientside function in a class joined to the player?

For example, I want to join a class that has a bunch of math functions to a player when they log on.

I can make it join and such, but it won't let me call the functions. I know it's possible, since I've done it before and seen it done before..

NPC Weapon
NPC Code:
function onCreated() {
player.chat = Clamp(10.6,1);
}



Class
NPC Code:
public function Clamp(value,clamp) {
return 123;
}

Reply With Quote