GainScenarioAccess

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

Description

Adds a password to the list of gained scenario 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 GainScenarioAccess(string password);

Parameter

password:
This scenario access password will 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

GainScenarioAccess("WipfeMonsterSchnee");
Gives the scenario access password WipfeMosterSchnee to the player.
See also: GetScenarioAccess
Marky, 2018-04
Sven2, 2001-11