-
Notifications
You must be signed in to change notification settings - Fork 5
BuildBuilding
nyfrk edited this page Feb 3, 2022
·
2 revisions
Start a building on a specified position. This is the same event that is issued when the player starts a building.
BOOL ISettlers4Api::BuildBuilding(
S4_BUILDING_ENUM buildingType,
INT x,
INT y,
DWORD player
);
buildingType
The building type you want to start the building. See S4_BUILDING_ENUM for a list of possible building types.
x
This is the x coordinate on the map for this building.
y
This is the y coordinate on the map for 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 5025.
Minimum API Level | 1 |
Target Edition | Any |
Header | S4ModApi.h |
Library | S4ModApi.lib |
DLL | S4ModApi.dll |