Data CUnit

The Unit object (of type CUnit) represents an object that can be placed on the map that affects the game's state. Things like buildings, force fields and weapon projectiles are all units. Units, especially projectiles, can be given a mover object to define how it moves around the map.

Fields which might be of interest are the stats fields which control values such as the unit's life and shields, the unit's abilities, its movement fields and the unit's flags which let you set options for the unit (whether its a hero, worker, structure, invulnerable, etc.).

Actors
If you want your units to be visible on the map, you need to create an actor for them. An actor is responsible for showing a model when certain events occur (such as the unit standing still or dying).

Command Card
The command card field lets you set which buttons are shown in the command card when the unit is selected. A unit may have multiple pages in its command card (eg. builders having basic buildings and advanced buildings).