AbilityService
Service for creating and enabling abilities.
Last updated
Service for creating and enabling abilities.
Last updated
Example usage:
Creates a new custom ability that can be enabled for players.
Enables the custom ability for the player. Use the optional progressRate parameter to set the rate (in seconds) at which progress is restored to the custom ability.
Removes the custom ability from the player.
Sets the rate (in seconds) at which progress is restored to the cstom ability.
Returns the current progress of the ability.
Adds the given amount of progress to the current progress on the ability.
Subtracts the given amount of progress from the current progress on the ability.
Sets the progress for the ability to the given amount.
Returns a list of custom abilities that the player currently has enabled.