IsObjectSet(id, setName);

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

IsObjectSet(id, setName);

Post 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 612 times
tank.png
tank.png (152.92 KiB) Viewed 612 times
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: IsObjectSet(id, setName);

Post 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
Post Reply

Return to “Battle Academy : Modders Corner ”