Skip to content
GreasedScotsman edited this page Jun 6, 2024 · 2 revisions

Zones

Zone Basics and Permissions Video

Adding different components to Zones, like the Zone Link, Zone Events or Zone Load Level component, will track different enter and exit events and provide activation permissions for those events.

Zone Link Items, like Zone Music and Zone Ambience, listen for Zone Link events, like starting or stopping a music track.

Zone Items, like Zone Events, listen for Zone events and trigger an action when activated, like enabling a realtime light to indicate an " alert" status, disabling a "forcefield" barrier or calling the SpawnSpawnable() method on a manual Crate Spawner.

Zones with Zone Links track the player and any entities within their bounds as they move throughout the level and convey events to their linked neighbors using Primary and Secondary event types.

  • A Primary Zone link event occurs when a valid activator, like the player, enters or exits the current Zone. When this happens, any Zones that are linked to the Primary Zone experience a Secondary activation event.

  • This chain of events provides many gameplay and performance-related functions, like ensuring that enemies and items don’t suddenly appear or disappear in front of the player as they traverse the level.

Used to trigger events and actions

Used to trigger a level change

Setting Zone Permissions with Activator Tags

Zone Links, Zone Events and Zone Load Level use Activator Tags to define a set of permissions for activating the Zone. Activators can be Bone Tag Data Cards. DataCards are digital content that references things like the Player or a music track. Activators can also be a Crate, which make up the physical content in Marrow, like spawnables. Bone Tag and Crate Activators can be mixed using AND/OR logic.

Examples:

  • The default Activator Tag for a Zone with a Zone Link is the Player, ensuring only the player will trigger it. Enemies or items passing into its bounds will have no effect.
  • A Zone with a Zone Event that uses no BoneTags, an Operator of AND but has a MK18 Holosight Spawnable listed in its Crates section, will only activate if a MK18 Holo enters its bounds.
  • Normally, Crate Spawners auto-fire when the Linked Zone they reside in gets activated. To override this, a Zone Event with the Player BoneTag Activator can be used to activate a Crate Spawner manually. First, set the Crate Spawner to Manual Mode. Then, add the Crate Spawner to the Zone Event's On Zone Enter section and give it the action of SpawnSpawnable(). Now, the Crate Spawner will only be activated when the Player triggers the Zone Event, not when entering the Linked Zone associated with the Crate Spawner.
  • A Zone Load Level with the Activator of Player sends them back to the BONELAB Hub at the end of an intense boss battle.

Clone this wiki locally