Units
Jump to navigation
Jump to search
Custom Formations
Custom formations work using a callback function which sets up the formation data for a given unit's men. The callback function has the form:
FUNCTION FORMATION_CALLBACK(me)
this function will make use of the SetFormationRow function:
//Set the location of the nth man in the unit relative to the center of the tile. offset is [0, 32], angle is [0, 359]. Only relevant in FORMATION_CALLBACK
SetFormationRow(n, offset, angle)