# ActiveGapcloser

# Description

A structure used to represent information about enemy champion gap-closing abilities, typically used in the OnEnemyGapcloser event.

# How to Use

// Use the ActiveGapcloser structure in an event handler
void OnEnemyGapcloser(AIBaseClient* sender, const ActiveGapcloser& args)
{
    // Get gap-closer information
    Vector startPos = args.StartPosition;
    Vector endPos = args.EndPosition;
    float speed = args.Speed;
    
    // Check if it's an unstoppable gap-closer
    if (args.isUnStoppable)
    {
        // Take evasive action
    }
    
    // Check gap-closer type
    if (args.Type == GapcloserType::Targeted && args.Target == ObjectManager::Player())
    {
        // The enemy is gap-closing towards us, can cast counter skills
    }
}

// Register event listener
EventManager::OnEnemyGapcloser::Add(&OnEnemyGapcloser);

# Properties

Property Type Description
Type GapcloserType Gap-closer type (skill, targeted, or item)
Target AIBaseClient* Target of the gap-closer
StartTime float Time when the gap-closer began
EndTime float Time when the gap-closer ends
Speed float Speed of the gap-closer
StartPosition Vector Starting position of the gap-closer
EndPosition Vector Ending position of the gap-closer
isUnStoppable bool Whether it's an unstoppable gap-closer
isCC bool Whether it's a crowd control ability