# Unit Attribute Change

Grammaru attribute points changed
FlagsNative | Event

This event fires when a unit’s attribute points change. Use “Triggering Attribute Points” to get the number of attribute points. Use “Triggering Behavior” to get the behavior.

# Arguments

  • unitref<unit> — Unit

Returns — void

native void TriggerAddEventUnitAttributeChange(
	trigger t,
	unitref u,
);

# Event parameters

Category: Unit / Attributes And Experience

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:9567

    libCOUI_gt_CU_StetelliteChargesChanged = TriggerCreate("libCOUI_gt_CU_StetelliteChargesChanged_Func");
    TriggerEnable(libCOUI_gt_CU_StetelliteChargesChanged, false);
    TriggerAddEventUnitAttributeChange(libCOUI_gt_CU_StetelliteChargesChanged, null);
}