HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

built or not

07-05-2007, 12:19 PM#1
Troll-Brain
i need to know if a structure is built or not.
I see only this way :
add in a group the unit begins to build and remove when she cancel / finish the built / die / is removed.
So if the unit is in the group, she isn't built

a better idea ?
07-05-2007, 12:23 PM#2
Tide-Arc Ephemera
When a structure has finished construction, give it custom value
Trigger:
Unit - Set Unit Custom Value to Integer
Then just use an integer comparison to check Unit Custom value.
07-05-2007, 01:11 PM#3
Troll-Brain
i already use custom values for something else.
i can use game cache too, and i think i will use it so.
that's true that is easier to check only the finish event, thx

EDIT : Hmm if i check only the finish event it will leak with the game cache ...