Game Development Community

Help calling staticShape after creating instance?

by Nic Biondi · in Technical Issues · 01/29/2004 (6:09 pm) · 4 replies

In the following code I create an instance of staticShape called doorway.
how would I get the handle to this instance in order to update its position?
[/b]??? is there some function like: %item =GetStaticShape("fart") ???[/b]

%item = new StaticShape("doorway")
{
  position = localclientconnection.camera.getPosition();       
  rotation = "1 0 0 0";
  datablock  = CastlePiece;
};

#1
01/29/2004 (6:34 pm)
You could just do... doorway.blah() to access it, I think. BTW, this should go in the Torque forums.
#2
01/30/2004 (1:09 am)
Your right ben, my mistake.
you are an incredible help by the way ben, I can't thank you enough.
#3
01/30/2004 (9:24 am)
No problem. Give me a free copy of your game when you finish it. ;)
#4
01/30/2004 (1:36 pm)
Done and Done!