Custom Abilities

Flamehead

Member
When writing our own custom ability scripts, what functions are needed inside our if statement to get the ability to have the green light? For example...

If (condition)
{
CantStartAbility();
}

Is that all we need for the ability to be able activate?
 
You can override the methods in Ability.cs (the script you are inheriting from when creating an ability) e.g. CanStartAbility().

Take a look at some of the build-in abilities, quite straight forward once you see how it works.
 
You don't need a check, if there are no conditions that should prevent starting the ability. Check the video on how to create a new ability:
 
Top