This ability is activated by the InputTag.Weapon.Grenade Asset tag of the Ability.Type.Action.Grenade. This uses GE_Grenade_Cooldown as a cooldown effect. On Pawn Avatar Set registers the widget with the UI Extension Subsystem on the local client, ensuring that only one widget is added per ability instance. On Activation checks for ability costs and cooldowns and commits them. It ends the ability if either check fails. It will then execute in the following process: Commits the ability cost and cooldown. Calculates the grenade spawn location and rotation. Checks for authority. If the authority is on the server, then it spawns the grenade Actor at the calculated values and sets the owning Lyra Character as the instigator. The spawned B_Grenade Actor is responsible for doing the detonation checks and applying relevant Gameplay Effects. B_Grenade detonates automatically on collision with an enemy pawn. It applies friendly fire to the instigating character (the one who threw the grenade), but not to their teammates. Plays the grenade throw montage, then broadcasts the remaining cooldown time through the Gameplay Message Subsystem, so the associated widget can sync up its cooldown display. Ends the ability immediately, without waiting for the montage to complete. On Ability Removed unregisters and clears the UI Extension.