Game Development Community

Object question

by JD Scogin · in Torque Game Builder · 08/28/2007 (2:46 pm) · 2 replies

I am dymanicly creating sprites. I am trying to figure out how to get the class name of a sprite. If I use handle.getClassName() it gives me then it give me t2dStaticSprite. The class of the object is playerRock, but I can't seem to figure out how to get that from the handle.
If I do handle.dump(), I find class = "playerRock".
Anyone know how to do this?
Thanks
Jd

(edit)
And of course as soon as I ask the question, I figure out the answer:
handle.getFieldValue("class")

I'll leave this here just in case someone else needs this info.

#1
08/30/2007 (11:47 am)
Or just...

handle.class
#2
09/03/2007 (10:06 am)
That's Great. Thanks!
Now why could I not find that?