-
Notifications
You must be signed in to change notification settings - Fork 5
UnGarrisonWarriors
Ungarrison a building. This makes a military building eject units.
BOOL ISettlers4Api::UnGarrisonWarriors(
DWORD building,
INT column,
BOOL bowman,
DWORD player
);
building
The index of the building to garrison. The player should own this building. Usually this is a military building like a guard tower.
column
The column of the unit to eject. Use 0 (zero) to eject the leftmost unit (in regards to the side panel of the selected building) . Use -1 to eject as much units as possible. This value is usually in the range -1..5.
bowman
If TRUE a bowman is ejected. Otherwise a swordman is ejected. This parameter is ignored if column is -1.
player
The player who issues the command. Use 0 (zero) to issue this event as the local player.
If this method could append the event successfully it will return TRUE. If an error occurred it will return FALSE.
The corresponding network event id of the command is ID 5032.
Minimum API Level | 1 |
Target Edition | Any |
Header | S4ModApi.h |
Library | S4ModApi.lib |
DLL | S4ModApi.dll |