DisableGroundLevelAreas(int disableTints)
Disables all ground-level events. This means that all Region events, the Player Stands
On Hotspot event, and the room edges become disabled.
This command is useful in conjunction with the character[].z variable, if you want the player
to be able to temporarily fly or levitate, for example. It allows you to stop the character
from triggering Player Stands On events while they are in the air.
This command is also useful during some cutscenes, if you don't want the player to trigger
events as they walk around the room while in the cutscene.
The DISABLETINTS parameter specifies whether the visual effects of the regions (ie. light
levels and tints) are also disabled. If you pass this as 0, then just the events will
be turned off.
Example:
DisableGroundLevelAreas(0);
will disable all ground-level events, but leave light levels working
See Also: Hotspot.Enabled, Region.Enabled,
EnableGroundLevelAreas
|