scmJS docs

Order

Orders the player's units of the type in one location to move, patrol or attack towards another.

Action 46 · Order(Player, Unit, From, To, Order);

Argument Takes Stored in the action
Player a player or group bytes 16–19
Unit a unit type, or one of the unit classes bytes 24–25
From a location (Anywhere is location 64) bytes 0–3
To a location (Anywhere is location 64) bytes 20–23
Order move, patrol or attack byte 27
Order("Player 8", "Men", "Spawn", "Base", attack);