This example teaches 2 concepts:
- clicking on a unit to select it
regionOverlapsWithRegion(
region(
getMouseCursorPosition(getOwner(lastCastingUnit)).x,
getMouseCursorPosition(getOwner(lastCastingUnit)).y,
1, 1
),
entityBounds(
selectedUnit()
)
- swapping control and camera of 2 player units (works for AI and for real players)
script here
Have fun with it!