Changing the Class of a Copy
by Tom Lenz · in Torque Game Builder · 03/05/2008 (6:00 pm) · 1 replies
I am currently working on a game where I need to change the class of a clone that I have made. Currently I have tried using the following code:
%newTower = %this.clone();
%newTower.setPosition($WP);
%newTower.setClassName(tower);
Is this even close to being right?
Is it even possible to do?
%newTower = %this.clone();
%newTower.setPosition($WP);
%newTower.setClassName(tower);
Is this even close to being right?
Is it even possible to do?
Torque Owner Kevin James
Changing class is pretty easy. Like so:
There may be a function to do this, but I know that using the "class" field works.