Click or drag to resize
GeneralRulesSetMapFlag Method
Turn on or off a flag associated with the current map.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual void SetMapFlag(
	int FlagIndex,
	bool Value
)

Parameters

FlagIndex
Type: SystemInt32
A value from 0 to 30 indicating which flag to set or clear
Value
Type: SystemBoolean
True to set the flag or false to clear it
Remarks
Each map has a built-in variable MapFlags that can be used to store 30 boolean values associated with the map. This could be used instead of counters to turn on or off major features of the map, for example, whether the map has been completed and will allow the player to exit the map without completing it. Such a task is more suited to a map flag than a counter because there must be exactly one flag per map, and the flag will automatically be available for each map that is created.
See Also