I have created a behaviour that works like an aura. We can call it Aura Behaviour.
It has a periodic set effect. The set effect has a search area effect. The search area effect has a radius and enables an apply behaviour effect. The apply behaviour effect gives units the behaviour buff I want them to have.
When I add the Aura Behaviour to a building, units that come close to the building gets the buff. When they move away from the building they lose the buff. So far so good.
The problem:
Units are only supposed to use their abilities if they have the buff. I have made a requirement that looks like this: Count Behaviour - Aura Behaviour Buff - Completed. I have added the requirement to the abilities and in game they canĀ“t use their ability. Not even with the buff.
When units come close to the building and recieves the buff, the requirement shall enable them to use their abilities. It does not work at all.
Try the Completed at Unit instead of just completed.
If that does not work, try to compare it to a number. The Count Behavior obviously returns a number (the stack count of the behavior), so if you compare it to another number ( for example >0) you get your enable/disable boolean. However, it should work without the comparison as well, any number >0 should be interpreted as a true statement.
Try the Completed at Unit instead of just completed.
If that does not work, try to compare it to a number. The Count Behavior obviously returns a number (the stack count of the behavior), so if you compare it to another number ( for example >0) you get your enable/disable boolean. However, it should work without the comparison as well, any number >0 should be interpreted as a true statement.
yes. Completed at Unit should solve this. I have requirements that are behavior based and it works on Completed at Unit.
I have created a behaviour that works like an aura. We can call it Aura Behaviour.
It has a periodic set effect. The set effect has a search area effect. The search area effect has a radius and enables an apply behaviour effect. The apply behaviour effect gives units the behaviour buff I want them to have.
When I add the Aura Behaviour to a building, units that come close to the building gets the buff. When they move away from the building they lose the buff. So far so good.
The problem:
Units are only supposed to use their abilities if they have the buff. I have made a requirement that looks like this: Count Behaviour - Aura Behaviour Buff - Completed. I have added the requirement to the abilities and in game they canĀ“t use their ability. Not even with the buff.
When units come close to the building and recieves the buff, the requirement shall enable them to use their abilities. It does not work at all.
What am I doing wrong?
Try the Completed at Unit instead of just completed.
If that does not work, try to compare it to a number. The Count Behavior obviously returns a number (the stack count of the behavior), so if you compare it to another number ( for example >0) you get your enable/disable boolean. However, it should work without the comparison as well, any number >0 should be interpreted as a true statement.
yes. Completed at Unit should solve this. I have requirements that are behavior based and it works on Completed at Unit.
Ah! Now it works! Thank you!