I want the ablity 'set rally point' only be useable on some places in my map. I have a trigger with an event : Unit uses ability (set rally point ) and action that it puts a other trigger ON. That trigger spawns some units. But I cant figgure out how to make sure the player can only use this ability at some spots on the map. I'm not sure it was ether a trigger or data thing, so I'm not sure I put it correctly.
Make a trigger that add and removes a behavior to the units.
You can then make a requirement that returns false if the behavior count of this "new behavior" is more then 0 for the unit
You can then use this requirement on the button settings for the ability
This will prevent the unit from using an ability while the behavior is present on the unit.
You would then add and remove the behavior bases on the location of the unit on the map...... for an example you could add/remove it based on the unit entering / leaving regions.
hope this helps.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
Hi, the title explanes most of the problem.
I want the ablity 'set rally point' only be useable on some places in my map. I have a trigger with an event : Unit uses ability (set rally point ) and action that it puts a other trigger ON. That trigger spawns some units. But I cant figgure out how to make sure the player can only use this ability at some spots on the map. I'm not sure it was ether a trigger or data thing, so I'm not sure I put it correctly.
Any ideas? Thanks infinity2
Make a trigger that add and removes a behavior to the units.
You can then make a requirement that returns false if the behavior count of this "new behavior" is more then 0 for the unit
You can then use this requirement on the button settings for the ability
This will prevent the unit from using an ability while the behavior is present on the unit.
You would then add and remove the behavior bases on the location of the unit on the map...... for an example you could add/remove it based on the unit entering / leaving regions.
hope this helps.
The unit that uses the ablity is a structure and so he cant move. Its where he uses the ability that has to be at some regions on the map.
Thanks for the reply
You could detect the unit casting the ability.
Then you would need some kinda logic to determine if the targeted point is a valid target in triggers.
The ability itself would need some kinda cast time to allow for the logic to process the request and then cancle it.
Ok I still cant found out how to do this ...
Can someone explane it some more please ?
Thanks