When returning an object to another object, the value becomes null ("0").
example:
PHP Code:
CLASS "p"
function test() echo("CLASS_OUTPUT: " @ this.testing());
public function testing()
{
meep = {1,2,{"Multi","Array"}};
return meep;
}
NPCW
function onplayerchats()
{
player.join("p");
player.test();
echo("WEAPON_OUTPUT: " @ player.testing());
}
Results:
PHP Code:
CLASS_OUTPUT: 1,2,"Multi,Array"
WEAPON_OUTPUT: 0
e.g.: NPC: Velox_Test, #gscript
Displays output on RC.