ref (counter)

Overview

This block allows the designer to compare a value which can change dynamically with a constant one (the Reference Value).

This works by letting you set up a counter in the editor and then add/subtract it by triggering a corresponding input.

This is good for loops.

Inputs

touchCheck the current value of the counter.
+Add 1 to the counter.
-Subtract 1 from the counter.
resetReset the counter to the Initial Value.

Outputs

? == 0Fires an event when the counter equals zero.
? < refFires an event when the counter is less than the Reference.
? == refFires an event when the counter equals the Reference.
? > refFires an event when the counter is more than the Reference.

Refs

  • N/A

Properties

Auto TouchFires an event when + or - input is triggered. When the reset input is triggered, there will be no event.
Initial ValueValue that your counter will begin with.
ReferenceA number to compare with your counter.

Usage examples

Shortcuts

C+LMB
Shift+C+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