InitScenarioPlayer

Category: Player
Since engine version: 4.9.7.0 CR

Description

(Re)initializes a player, including generation of starting materials and co. from Scenario.txt

Syntax

bool InitScenarioPlayer (int iPlr, int idTeam);

Parameters

iPlr:
Number of the player who should be (re)initialized.
idTeam:
Number of the team the player should belong to.

Remark

This function is used internally by the engine to synchronize player joins and is not intended for normal uses in scripts. Clonks and buildings owned by the player are not deleted, because the function was only intended for initializing the player on player join. (If a player has 2 clonks on join and is initialized again with this function, they will have 4 players.)
Fulgen / Clonk Wiki, Juli 2016