# Integrating with Gameplay Ability System (GAS)

[Gameplay Ability System](https://docs.unrealengine.com/5.1/en-US/gameplay-ability-system-for-unreal-engine/) is an official plugin for building various types of character abilities and attributes that you can use to define character actions in your games. It is a flexible, though with a little tricky complexity system that comes up with the core concepts of Gameplay Tag, Gameplay Attribute, Gameplay Event and Gameplay Ability. The `Gameplay Ability` class is where you implement the ability logic, play montage and do collision detection, etc.

If your character is casting an ability using GAS and you want to call a nice ability camera while handling ability interruption and ability end, you should explicitly call the original camera in the `OnEndAbility` event, which already provides you with a boolean value `Was Cancelled`. This value helps you distinguish whether this ability is normally ended or is interrupted by other abilities or actions.

<figure><img src="/files/2yo4ClkMjROyT84yYUu0" alt=""><figcaption></figcaption></figure>

In the future I will give a complete toy example to shed light on integrating GAS and ComponentCameraSystem.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sulleyyys-organization.gitbook.io/manuals-of-ccs/advanced-uses/integrating-with-gameplay-ability-system-gas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
