-
Notifications
You must be signed in to change notification settings - Fork 5
ToggleBuildingPriority
nyfrk edited this page Aug 29, 2020
·
1 revision
Toggle priority mode for a building. This is the same event that players can issue by clicking the priority icon in the side panel of a selected building that has not yet been fully build.
BOOL ISettlers4Api::ToggleBuildingPriority(
DWORD building,
DWORD player
);
building
The index of the building to toggle the priority mode for. The player should own this building.
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 5004.
Minimum API Level | 1 |
Target Edition | Any |
Header | S4ModApi.h |
Library | S4ModApi.lib |
DLL | S4ModApi.dll |