GetMissionAccess

Category: System
Since engine version: 5.1 OC

Description

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

Syntax

bool GetMissionAccess(string mission_access);

Parameter

mission_access:
Mission access to be checked.

Remark

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

Example

if (!GetMissionAccess("DasWarHarteArbeit"))
{
  GainMissionAccess("DasWarHarteArbeit");
  Message("Congratulations, you are here for the first time!");
}
Displays a message if the mission access password "DasWarHarteArbeit" was not yet gained and then gives this mission access.
See also: GainMissionAccess
Sven2, 2001-11
matthes, 2005-02