I am trying to find a condition that checks if an ability can be used based on the cost of the ability and the unit's current resources. I am using a trigger to activate an ability since I have the UI hidden, and I don't want the trigger to run if the unit doesn't have enough resource to execute the ability. Any suggestions?
Thanks. Easy enough. What I am really trying to figure out is why, when I press the key that activates the trigger, the screen tends to kind of 'jerk' when the unit is moving. The camera is on follow, so.. maybe I need to make the ability transient? It is an instant effect, and it only starts messing up after I spam the key so, hmm...
Edit: Never mind, allow movement seemed to fix it.
I am trying to find a condition that checks if an ability can be used based on the cost of the ability and the unit's current resources. I am using a trigger to activate an ability since I have the UI hidden, and I don't want the trigger to run if the unit doesn't have enough resource to execute the ability. Any suggestions?
Try "Unit Property", it gives you access to all available unit resources
@Zurom: Go
Thanks. Easy enough. What I am really trying to figure out is why, when I press the key that activates the trigger, the screen tends to kind of 'jerk' when the unit is moving. The camera is on follow, so.. maybe I need to make the ability transient? It is an instant effect, and it only starts messing up after I spam the key so, hmm...
Edit: Never mind, allow movement seemed to fix it.