Hey, I'm trying to make an area-of-effect ability (Ability - Target).
What I'd like is the cursor Search Area to find certain unit types within the area to-be-effected, and if there are units within that area, the ability can't be cast there.
Is there a way to do this? I'm trying to mess around with the Search Area and Unit Type Validators, but I'm unsure on how to get my cursor for targeting the ability to hook up to this, and to turn itself "inactive" if the conditions are met.
Put your validator to the "validator" field of the first effect your ability create. It will diasble the cusrsor when validator is false.
You doing right using Search Area validator. Just define the area and set validator's condition "equals" and "0". Also, define validator's search filter if you need to. All this is pretty intuitive.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey, I'm trying to make an area-of-effect ability (Ability - Target).
What I'd like is the cursor Search Area to find certain unit types within the area to-be-effected, and if there are units within that area, the ability can't be cast there.
Is there a way to do this? I'm trying to mess around with the Search Area and Unit Type Validators, but I'm unsure on how to get my cursor for targeting the ability to hook up to this, and to turn itself "inactive" if the conditions are met.
have you tried playing with these validators?...Unit scan / Unit detected / Detect range...
Put your validator to the "validator" field of the first effect your ability create. It will diasble the cusrsor when validator is false.
You doing right using Search Area validator. Just define the area and set validator's condition "equals" and "0". Also, define validator's search filter if you need to. All this is pretty intuitive.