How to get the object type in scripts?
by Markus Nuebel · in Torque Game Engine · 07/15/2004 (2:22 am) · 2 replies
I have a simgroup, that contains different kinds of objects and even other nested simgroups.
Now I want to make the whole content of the top-level simgroup invisibe.
When I am looping through the objects of the group I want to know, what type of object the current object is, Or at least, I want to know, if it is a nested simgroup or a normal object.
Is there any way to do this?
-- Markus
Now I want to make the whole content of the top-level simgroup invisibe.
When I am looping through the objects of the group I want to know, what type of object the current object is, Or at least, I want to know, if it is a nested simgroup or a normal object.
Is there any way to do this?
-- Markus
About the author
#2
Thanks Ron.
-- Markus
07/15/2004 (12:52 pm)
Yes, getType() does the thing. And for a SimGroups getType() returns 0.Thanks Ron.
-- Markus
Associate Ron Yacketta
-Ron
Also might want to have this at your disposal, might eb a bit dated, but the base functiosn are there.