select (logic)

Overview

Allows the user to create a number of events, then select which event will be fired each time the block is activated. For example, if you need to check whether the player has a key to a door and you want to play different animations based on that, you can do it with this block. If the player has the key, select the event that will play the door open animation. If the player doesn't have the key, select the event that will play the door locked animation.

Inputs

activate

Fires an event from the selected output.

sel-0,1,...,29

Selects which output to fire an event from.

Outputs

out-0,1,...,29Fires an event from the selected output when the block is activated. If nothing was selected before the activation, the event is fired from out-0.
selectedFires an event each time a new output is selected.

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 select and fire 16 different events.

[selected] on same selThe "selected" event will fire even if the same "sel" input is entered twice in a row.

Usage examples

Depending on the player's karma, the bandit will either surrender or play an alert sound when the player enters the bandit camp. In this example, we assume that karma signals have been sent from an earlier script.

Shortcuts

  • N/A

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