McSSetPosList
From Original War Support Wiki
SAIL Functions/M -> McSSetPosList
SAIL Functions/MacrosRelated -> McSSetPosList
Description
Sets building position list for McSkirmish macro.
Usage
McSSetPosList(mcsid:integer, list:plist)
mcsid - id of a running McSkirmish macro.
list - list of buildings' positions. For example:
[ [mcs_depot_pos, [x, y, d]], [mcs_armoury_pos, [x, y, d], [x, y, d]], [mcs_fact_pos, [x, y, d]], [mcs_lab_pos, [x, y, d]], [mcs_power_pos, [x, y, d], [x, y, d], [x, y, d]], [mcs_defend_pos, [x, y, d]], [mcs_ext_pos, [x, y, d], [x, y, d], [x, y, d], [x, y, d], [x, y, d]], [mcs_oilmine_pos, [x, y, d]], [mcs_sibmine_pos, [x, y, d]], [mcs_teleport_pos], [mcs_tower_pos, [x, y, d]], [mcs_behemoth_pos] ];
x - building's x-coordinate,
y - building's y-coordinate,
d - building's direction (0-5).
Example
The code below sets a building position list (stored in "buildings" variable) for a running McSkirmish macro:
McSSetPosList(mcsid, buildings);