Description
Directly sets the current number of charges available for a specified ability on a player. This action works with any ability that uses a charge system and supports reevaluation. Charges are clamped to the ability's defined minimum and maximum.
Snippet
Set Ability Charge Count(Event Player, Button(Ability 1), 2);
Properties
Returns: Void
Parameters: Player, Button, Charges
Player
Type: Player, Default: Event Player
The player whose ability charge count will be set.Button
Type: Button, Default: Ability 1
The ability button whose charge count will be modified.Charges
Type: Number, Default: 1
The number of charges to assign. Values are clamped to the valid range for the ability.