This function is called if the range manager scriptedVisibility flag is set to true for this entity. If so, the return value supersedes the visibility computed by the range manager. isVisible: true if the entity is in the vision range of a unit, false otherwise isExplored: true if the entity is in explored territory, false otherwise
This function is a fallback for some entities whose visibility status cannot be cached by the range manager (especially local entities like previews). Calling the scripts is expensive, so only call it if really needed.
Sets the range manager scriptedVisibility flag for this entity.