Fires when the player changes targets

Signature:

("cause")

Arguments:

  • cause - a token indicating the cause of the target change (string)
    • LeftButton - selected the target using static frames in the UI
    • NIL - target moved out of range and was lost
    • down - pressed Escape to clear the target selection
    • up - clicked a unit directly