Goto http://www.stucuk.netGoto http://www.atlanticaonlinewiki.comGoto


From Original War Support Wiki

Jump to: navigation, search

SAIL Functions/M -> McSSetPosList

SAIL Functions/MacrosRelated -> McSSetPosList


Sets building position list for McSkirmish macro.


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_tower_pos, [x, y, d]],
 [mcs_behemoth_pos] ];

x - building's x-coordinate,
y - building's y-coordinate,
d - building's direction (0-5).


The code below sets a building position list (stored in "buildings" variable) for a running McSkirmish macro:

McSSetPosList(mcsid, buildings);
Personal tools
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Cannot contact the database server: MySQL functions missing, have you compiled PHP with the --with-mysql option? )

You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.