From Arx Libertatis Wiki
Jump to navigation Jump to search

The ifvisible script command is used to skip the next command block unless an entity is inside the cone of vision for an entity. It does not check if the entity is hidden behind another object or if it is invisible. This command is similar to if ^dist_<entity> < 20000 except that <entity> can be a variable expression and the entity also has to be within the front 180° of the calling entity. It can be combined with else to add a block that is only executed if the condition is false.


ifvisible <entity>

Context: Any Entity


entity entity The entity that has to be visible