Activator - xviable/escape-sim-room-editor-docs GitHub Wiki

Logic Objects > Activator


A logic object that when sent an input will toggle the existence of target object(s), toggle their colliders, or toggle their renderer. An activator will toggle properties of its targets if it is sent an output signal from a Button, Animation, Lock, Trigger or other logic objects.

Properties

  • Activation Type (Disable | Enable | Toggle)
  • Targeting Object: Defines whether the Activator Component should enable/disable/toggle the entire object. This includes disabling the object's Renderer and Collider as well as all of the Child prop objects, but the Renderer and Collider states are not changed and are considered to be active if not disabled by this one or another Activator Component for the purposes of using another Activator Component to change them
  • Targeting Renderer: Defines whether the Activator Component should enable/disable/toggle the rendering components of a prop. When the rendering components of a prop are disabled you can not see the prop but its physics properties remain unchanged.
  • Targeting Collider: Defines whether the Activator Component should enable/disable/toggle the collider (physics collision) components of a prop. Disabling Colliders on a prop that is not static results in the prop falling through the floor. Disabling Colliders on a prop that is static means it will not interact with other props using physics, e.g. you can throw other props through it. Does not deactivate the Obstacle property.
  • Active On Start: Defines whether the Activator Component should activate on the first frame of starting the level.
  • Target Objects: List of props you want to enable/disable/toggle once the Activator Component is activated.

Common uses for a visibility activator

  1. Used to hide an object until after a lock is unlocked or a puzzle is solved
  2. Used to hide effects until you want to display them later
  3. Used to hide many objects to keep performance higher in an area a player has not yet explored
  4. Used to disable the collider of an object so that everything will pass through it
  5. Used to make a player drop an item

To trigger a Visibility Activator, target it with a Button, an Animation, Locks or other logic objects.

"Gotchas":

  • Disabling a property of an object while it is in a player inventory or in a slot will make the player drop the prop on the player's current location and disable the Targeted properties of the prop.
  • If none of the Targeting checkmarks are checked the Activator Component goes through the list of Targeting Objects but does nothing to the objects.