w
move upa
move lefts
move downd
move rightg
game mode (Display Cities and Strategic Railways only)b
spawn a Friendly Infantry at mouse positionr
spawn a Hostile Infantry at mouse positionv
duplicate last spawned unit at mouse positionl
load last saved game;
save game(info displayed in consoleF12
)z
change NATO symbol z-indexLMB
move(drag) symbolMMB
delete symbolRMB
select symbol]
increase size of symbols(if not specified in symbol options)[
decrease size of symbols(if not specified in symbol options)\
reset size of symbols(if not specified in symbol options)
f
toogle Friendly/Hostile1
spawn a Motorized Infantry at mouse position2
spawn a Mechanized Infantry at mouse position3
spawn an Armor at mouse position0
spawn an Infantry at mouse position
// method 1:
addUnit(
syntax: String = "SFGPUCI-----",
options,
lnglat: [longitude: Number, latitude: Number] = <mouse position>
)
// example 1: spawn a Hostile Infantry at mouse position
addUnit("SHGPUCI-----");
// example 2: spawn a Friendly Infantry at (118.797466, 32.087265)
addUnit("SFGPUCI-----", undefined, [118.797466, 32.087265]);
// example 3:
addUnit("sfgpewrh--mt", {
size: 35,
quantity: 200,
staffComments: "for reinforcements".toUpperCase(),
additionalInformation: "added support for JJ".toUpperCase(),
direction: (750 * 360) / 6400,
type: "machine gun".toUpperCase(),
dtg: "30140000ZSEP97",
location: "0900000.0E570306.0N"
});
// method 2:
syntaxStore = "SFGPUCIM----"
// then press `v` to spawn a Friendly Motorized Infantry at mouse position
Options Reference
Syntax Reference
resize(size: Number = 35);
// first select a symbol with right click, then:
selected.update(syntax, options, lnglat);
// example: add additionalInformation to selected Symbol
selected.update(undefined, { additionalInformation: 'Rout!' });
selected._memory