Skip to content
nyfrk edited this page Feb 3, 2022 · 2 revisions

ISettlers4Api::GetPlayerTribe method

Get the tribe identifier of a player.

Syntax

S4_TRIBE_ENUM ISettlers4Api::GetPlayerTribe(
	DWORD player
);

Parameters

player

The player who issues the command. Use 0 (zero) to issue this event as the local player.

Return value

The method will return one of the following values.

Value Description
S4_TRIBE_NONE
255
An error occured and the tribe could not be retrieved.
S4_TRIBE_ROMAN
0
The player is playing the romans.
S4_TRIBE_VIKING
1
The player is playing the vikings.
S4_TRIBE_MAYA
2
The player is playing the mayas.
S4_TRIBE_DARK
3
The player is playing the vikings.
S4_TRIBE_TROJAN
4
The player is playing the trojans.

Remarks

none

Requirements

Minimum API Level 1
Target Edition HistoryEdition
MD5: C13883CBD796C614365AB2D670EAD561
Header S4ModApi.h
Library S4ModApi.lib
DLL S4ModApi.dll

See also

ISettlers4Api

S4_TRIBE_ENUM

Game.PlayerRace (s4.muffinmar.io)

Clone this wiki locally