Skip to content

Army commands

Equips a set from the army config file.

ParameterTypeOptionalDefaultDescription
setNamestringThe name of the set to equip.
refModebooleanfalseWhether to resolve item names through a common lookup table.

Initializes the army.

Joins the map but waits for all players in the group to join before proceeding.

ParameterTypeDescription
mapstringThe name of the map to join.
cellstring?The name of the cell to join.
padstring?The name of the pad to join.

Kills the target, but waits for all players in the group to finish before proceeding.

ParameterTypeDescription
targetNamestringThe name of the target to kill.
optionsPartial<KillOptions>?The options for the kill.

Kills the target for a specified item, but waits for all players in the group to get the item before proceeding.

ParameterTypeDescription
targetNamestringThe name of the target to kill.
itemNamestringThe name of the item to get.
qtynumberThe quantity of the item to get.
isTempbooleanWhether the item is temporary or not.
optionsPartial<KillOptions>?The options for the kill.

Kills the target for a specified permanent item, waiting for all players to get the item.

ParameterTypeDescription
targetNamestringThe name of the target to kill.
itemNamestringThe name of the item to get.
qtynumberThe quantity of the item to get.
optionsPartial<KillOptions>?The options for the kill.

Kills the target for a specified temporary item, waiting for all players to get the item.

ParameterTypeDescription
targetNamestringThe name of the target to kill.
itemNamestringThe name of the temporary item to get.
qtynumberThe quantity of the item to get.
optionsPartial<KillOptions>?The options for the kill.

Sets the config file name.

ParameterTypeDescription
fileNamestringThe name of the config file.

Executes a function, but waits for the function (a.k.a for all players) to finish before proceeding.

ParameterTypeDescription
fn() => Promise<void>The function to execute with the army.
fnNamestring?The name of the function to execute.