(Formerly known as DisableRegion, which is now obsolete)
(Formerly known as EnableRegion, which is now obsolete)
bool Region.Enabled
Enables/disables the specified region. If you set this to false, then all areas of the screen
that were previously part of the region now act as type 0 (no region). You can turn the region
back on later by setting this to true.
While a region is disabled, it will not be returned by Region.GetAtRoomXY, and if
the character walks onto the region then its events will not get run.
Example:
region[3].Enabled = false;
will disable region number 3.
See Also: Hotspot.Enabled,
RemoveWalkableArea,
RestoreWalkableArea
|