Game Development Community

Dynamic mount problem

by Nir Ziso · in Torque Game Builder · 08/08/2006 (3:44 am) · 2 replies

I want to mount one object to another one I write this:
$mycardsdecd.getobject(4).mount(%this,0,0.4,0,false,true,true,true);

This object is mounting to the other but I get this message:
Cannot mount to myself('9589') why?

#1
08/10/2006 (11:12 am)
Sounds like it's getting called more than once and $mycardsdecd = %this at some point. Do an if statement before the mount to make sure that they're not the same.
#2
08/12/2006 (1:52 pm)
Thanks alot