# Triggering Ability Other Unit

Grammar — Abilities other unit
FlagsNative | Function

Returns the “other unit” when an ability is used. For inventory abilities, this is the item used. For transports, it’s the unit being unloaded.

Returns — unit

native unit EventUnitAbilityOtherUnit();

# Supported triggers

Category: Ability / Basic

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:132

    // Automatic Variable Declarations
    // Variable Initialization
    lv_otherUnit = EventUnitAbilityOtherUnit();
    lv_abilUsed = EventUnitAbility();
    lv_itemType = "";