View Single Post
  #1  
Old 04-04-2007, 08:24 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Clientside Classes

Having a bit of a problem. I'm having problems joining a class to a player when the log online.
Here's what I have so far, it just doesn't seem to interact with the player, at all.

HTML Code:
//#CLIENTSIDE 
function onCreated()
  {
  player.join("player_weapon");
  player.doAction({"drawMaps", "defaultStats"});
  }
Inside the "player_weapon"

HTML Code:
//#CLIENTSIDE   
function onCreated()
  echo("GOT THE MAIN CONTROL!");
  
public function doAction(actionNames)
  for (temp.currentAction: temp.actionNames)
    this.(@ temp.currentAction)();
Neither are being called... suggestions? thanks!
Reply With Quote