Page 1 of 1

IsObjectSet(id, setName);

Posted: Thu Oct 18, 2012 8:29 pm
by enric
I used the function
IsObjectName(id, "tanktraps"); or
IsObjectName(id, "Dragons_teeth");
to know is the object in the tile is one of these.

I see that some objects share a name description (You need to keep the shift down to see the specific building, tank trap, etc.):
tanktraps, and Dragons_teeth:Tank Trap,
any house is a Building,



is there a functions to check the objects by its general description?, like:
IsObjectNameDescription(id, "Building");
drag.png
drag.png (96.04 KiB) Viewed 615 times
tank.png
tank.png (152.92 KiB) Viewed 615 times

Re: IsObjectSet(id, setName);

Posted: Thu Oct 18, 2012 8:41 pm
by pipfromslitherine
No - the objects are all named in a pretty ad-hoc fashion (otherwise known as "artist naming..." which does make dealing with them somewhat more painful I know.

Cheers

Pip