Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.