Description
Assigns a specified hero's ability to a player's chosen ability slot, regardless of the player's current hero. The granted ability behaves as it would on its native hero, using that hero's default values unless overridden by other Workshop actions. Reverts when cleared with Remove Hero Ability.
Snippet
Grant Hero Ability(Event Player, Hero(Tracer), Button(Ability 1), Button(Ability 2));
Properties
Returns: Void
Parameters: Player, Hero, Source Button, Target Button
Player
Type: Player, Default: Event Player
The player who will receive the granted ability.Hero
Type: Hero, Default: Hero(Reaper)
The hero from whose kit the ability will be taken.Source Button
Type: Button, Default: Ability 1
The ability slot on the source hero to copy from.Target Button
Type: Button, Default: Ability 1
The ability slot on the player that will be replaced with the granted ability.