GainMissionAccess

Category: System
Since engine version: 4.6.5.0 CP

Description

Adds a password to the list of gained mission access passwords. All players on this computer can then start scenarios which require this password (defined in Scenario.txt). In a sequence of mission scenarios each scenario should give access to the next one.

Syntax

bool GainMissionAccess (string szPassword);

Parameter

szPassword:
Password to be added to the list.

Remark

If the engine runs in developer mode, stored registry information is not properly updated. To test this function, start the engine in player mode.

Example

GainMissionAccess("WipfeMonsterSchnee");
Gives the mission password WipfeMosterSchnee to the player.
See also: GetMissionAccess
Sven2, November 2001