Game Development Community

Basic script object question.

by Tim Kin Chu · in Torque Game Builder · 04/28/2006 (8:19 pm) · 1 replies

When using srcipt object.

$objectName = new ScriptObject( objectName);

what is the use of second "objectName".

#1
04/29/2006 (5:40 am)
You can access the object thru it also :

objectname.x = 3;

And you can use it for inheritance as a copy constructor

$obj2 = new ScriptObject( myObj : ObjectName );