GetScenarioAccess

Category: System
Since engine version: 9.0 OC, previously known as GetMissionAccess from 1.0 to 8.1 OC

Description

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

Syntax

bool GetScenarioAccess(string password);

Parameter

password:
Scenario access password to be checked.

Remark

In a network game, this function always returns false. Otherwise differing local values might cause synchronization problems.

Example

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.
See also: GainScenarioAccess
Marky, 2018-04
Sven2, 2001-11
matthes, 2005-02