Units

From Archon Wiki
Revision as of 18:45, 7 January 2016 by Phil (talk | contribs) (Created page with "= 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: <code>FUN...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)