Game Development Community

Help with mounting

by Harrison Brock · in Torque Game Builder · 09/21/2006 (7:16 am) · 2 replies

Here is the code that I have:

if(b1.getMountedParnet() $= b0_0)
{
if(r0.getRotation() == 180 && r3.getRotation() == 0)
{
b1.mount(b3_0,0,0,0,true,false,false);
}
}

Am try to see if in object is mounted to the object name b0_0. But the check dose not work. Am I using the right method for this?

Harrison Brock

#1
09/21/2006 (8:08 pm)
Quote:if(b1.getMountedParnet() $= b0_0)

Parnet should be Parent ;)
#2
09/21/2006 (10:34 pm)
Please post your questions in one and only one forum!

This was answered more in depth in another of your posts, and what is failing is your attempt to compare an ObjectID (which is a number) to a string ("b0_0"). A solution was posted as well in one of the last posts in the thread.