Game Development Community

Question about making class

by Harrison Brock · in Torque Game Builder · 09/06/2006 (11:58 am) · 1 replies

How do you make classes without use TBE. I want to be able to do everthing in scripts and how do you make
dyanmic flieds in scripts?

Harrison Brock

#1
09/06/2006 (6:07 pm)
Method 1:
$object.DynamicFieldA = "value";
echo($object.DynamicFieldA);


method 2:
$object.setDynamicField('Name', 'Value'); // I believe, verify in the TGB Reference
$object.getDynamicField('Name'); // returns Value, verify with TGB Reference


Unless I misunderstood the question, either of those should do the trick.