GeneralRulesSetTargetMapFlag Method |
Turn on or off a flag associated with the specified map.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual void SetTargetMapFlag(
Type MapType,
int FlagIndex,
bool Value
)
Parameters
- MapType
- Type: SystemType
Specifies a map whose flag will be set - FlagIndex
- Type: SystemInt32
A value from 0 to 30 specifying which flag to set or clear - Value
- Type: SystemBoolean
True to set the flag or false to clear it
Remarks This operates like
SetMapFlag(Int32, Boolean), but can operate on any map
rather than just the current map. This could be used, for example, to set a flag that
would cause all the sprites on any particular map (even if it is not the current map)
to be frozen next time the player visits it, assuming all sprite definitions check
the flag before allowing the sprite to move.
See Also