Game Development Community

Exposing objects as member variables.

by J. Donavan Stanley · in Torque Game Engine · 11/30/2002 (5:46 pm) · 0 replies

I have an object called D20Tupple which is derrived from NetObject. Within the console I can work with it just fine witch things like:

$tpl = new D20Tupple;
$tpl.base = 15;
$tpl.current = 12;;
$tpl.reset();

What I WANT to be able to do is add one to the player object and access it in the same way (i.e. $player.stat.base = 10; ). However I can't seem to come up with the proper incantation to do so. Can anyone shed some light on this for me?