switch (logic)

Overview

This block allows you to fire events in a queue. When it is first activated, it will fire the first event in the queue and each time after that it will fire the next event until it reaches the end of the queue. After that, based on the block's settings, it can either start the cycle again, stop sending events, or only send the last event in the queue upon each new activation.

The block can not only fire events but also act as a kind of switch for refs.

Inputs

activateActivates the block.
resetResets the counter to out-0.
repeatRepeats the last out.

Outputs

out-0,1,...,29
  • Fires an event when the counter equals 0, 1... 29.
  • You can set the amount of outputs in the property Output Quantity.

Refs

  • N/A

Properties

Output Quantity

The number of outputs.

For example, with Output Quantity = 16, a total of 16 different outputs will be generated and you will therefore be able to fire 16 different events based on the current value.

Type
  • Cycle  repeat the cycle after reaching the last event. For example, after executing the last out, the counter will switch to the first out.
  • Keep  keep firing the last event upon reaching it. For example, after executing the last out, the counter will stay in this out.
  • Stop  don't fire any new events after reaching the last one.

Usage examples

Upon every activation, this will clone an NPC in the order laid out in the switch block.

Shortcuts

]+LMB

See also

On this page:


Exodus SDK © 2005-2023, 4A Games Limited. Developed by 4A Games®.
4A Games® is a registered trademark, and 4A Games Limited, Exodus SDK and their respective logos are trademarks of 4A Games Limited.
Published by Deep Silver. Deep Silver is a division of PLAION GmbH, Austria. Deep Silver and Plaion are registered trademarks of PLAION GmbH.
Metro Exodus is inspired by the internationally best-selling novels METRO 2033 and METRO 2034 by Dmitry Glukhovsky.
All other trademarks, logos and copyrights are property of their respective owners. All rights reserved.
By using this site, downloading or using the Exodus SDK or related content, you are agreeing to be bound by the terms of the End User License Agreement.


EULA