visible


Overview

Check, if an entity is visible to the player. By visible, we mean any object that is currently on screen and not obstructed by another object. Z-buffer information is taken into consideration when calculating the visibility of the target. Like all checker blocks, this one will only fire an event when the "check" input is triggered.

Inputs

  • Check

Will fire an event out of one of the outputs, when triggered.

Outputs

  • Visible

Will fire an event if the target entity is visible at the moment of the check.

  • Invisible

Will fire an event if the target entity is not visible at the moment of the check.

Refs

  • Target

Target entity to check for visibility.

Properties

  • This block has no special properties.

Usage examples

One potential use for this block is for safely de-spawning NPCs without worrying that they will disappear right in front of the player's eyes. In the example below, we do that by first checking whether the player has departed a restrictor, and then we check whether the target NPC is visible to the player. If the NPC is invisible, we send a signal that will despawn the target NPCs. If the target is visible, we wait one second and then re-check the target NPC's visibility.

See also


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