View Single Post
  #1  
Old 01-10-2006, 07:41 PM
Tom Tom is offline
Grraaaaaw
Tom's Avatar
Join Date: May 2005
Posts: 2,037
Tom is on a distinguished road
Player clientside class functions

In working with Relic, I have encountered numerous programming problems that I do believe shouldn't have bothered me, but has!

For instance, player.func() defined in the ( serverside ) join command with a clientside segment doesn't work:

Example:

PHP Code:
Class pfunc:

function 
onCreated()
{
  echo(
"Class DID join");
}

//#CLIENTSIDE

public function test() 
{
this.chat "test"

PHP Code:
Weapon anything:

function 
onCreated()
{
  
player.join("pfunc");
}

//#CLIENTSIDE

function onCreated()
{
  
player.test(); // GraalScript: Function test not found in script of Weapon anything
  
player.pfunc::test(); // GraalScript: Function test not found in script of Weapon anything

As seen in these codes, the player class does not actually carry over the class functions...

Last edited by Tom; 01-10-2006 at 07:55 PM..
Reply With Quote