API Frame RegisterUnitEvent

Registers the frame for a specific event, triggering the OnEvent handler when the event occurs for the specified units. Frame:RegisterUnitEvent("event", "unit1"[, "unit2"])

The API function is available for any widget capable of having an OnEvent handler.

Arguments

 * event : String - name of the event, e.g. "UNIT_POWER".
 * unit1 : String (unitId) - unit to deliver the event for.
 * unit2 : String (unitId) - second unit to deliver the event for.