Game Development Community

PLZ Help! Easy question about clones...

by Robert Carroll · in Torque Game Builder · 12/04/2010 (8:28 pm) · 1 replies

Hi, can someone tell me if it is possible to have a object move, shoot, flee, etc. at another objects clone? Like normally I would put Move towards "plane" could I do something like "plane(2)" to get the clone?

#1
12/04/2010 (8:45 pm)
Keep track of the clone's object ID. Send that ID to whatever is shooting at the clone so that it knows which object to shoot at.

When you create your clone you should be using a variable to hold it.
%newObject = myObject.cloneWithBehaviors();

Get that variable to the shooting object somehow. It all depends on how you've scripted.