I have a targeted ability that creates a unit when clicked. However I need the unit to be created only when clicked on creep and give an error if not, just like placing a building or creep tumor. Currently if I click outside of creep, the cursor just disappears, no unit is created, but the minerals are taken anyway. I need some kind of requirement or validator, I'm assuming. I've looked through a lot of them but couldn't find anything that worked so far. Any help would be appreciated!
I have a targeted ability that creates a unit when clicked. However I need the unit to be created only when clicked on creep and give an error if not, just like placing a building or creep tumor. Currently if I click outside of creep, the cursor just disappears, no unit is created, but the minerals are taken anyway. I need some kind of requirement or validator, I'm assuming. I've looked through a lot of them but couldn't find anything that worked so far. Any help would be appreciated!
Try the location Creep validator?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg