GetScenarioAccess

Kategorie: System
Ab Engineversion: 9.0 OC, previously known as GetMissionAccess from 1.0 to 8.1 OC

Beschreibung

Determines whether the player already has the specified scenario access password.

Syntax

bool GetScenarioAccess(string password);

Parameter

password:
Scenario access password to be checked.

Anmerkung

Bei aktiviertem Netzwerk gibt diese Funktion grundsätzlich den Wert false zurück, da ansonsten lokale Unterschiede zur Desynchronisation führen könnten.

Beispiel

if (!GetScenarioAccess("DasWarHarteArbeit"))
{
  GainScenarioAccess("DasWarHarteArbeit");
  Message("Congratulations, you are here for the first time!");
}
Displays a message if the scenario access password "DasWarHarteArbeit" was not yet gained and then grants this scenario access.
Siehe auch: GainScenarioAccess
Marky, 2018-04
Sven2, 2001-11
matthes, 2005-02