Anyone know how I could make a trigger go that runs when I press a button for a unit?
So what i have is a unit group full of zerglings, and when you morph them into baneilngs, the game registers that is a removal of the zergling from the group, but it doesnt add the baneling back into the group.
I was going to have it run a trigger that adds the baneling back into the group, but I cant figure it out.
Like dragon said, there are trigger events to catch such things. You can even use something alone the lines of, 'when unit finishes casting an ability or spell'.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Anyone know how I could make a trigger go that runs when I press a button for a unit?
So what i have is a unit group full of zerglings, and when you morph them into baneilngs, the game registers that is a removal of the zergling from the group, but it doesnt add the baneling back into the group.
I was going to have it run a trigger that adds the baneling back into the group, but I cant figure it out.
Any responses would be great. Thanks.
@PBobbert: Go
You can catch the event:
It sounds like you're trying to code around a bug rather than fix the bug though...
@sdragoon7: Go
Like dragon said, there are trigger events to catch such things. You can even use something alone the lines of, 'when unit finishes casting an ability or spell'.