ViewRange - originalfoo/Prison-Architect-API GitHub Wiki
Further investigation required
##Overview
The ViewRange setting seems specific to Entities and defines the extent to which they clear the "fog of war" around them. It also affects the targeting abilities of entities equipped with ranged weapons.
##Syntax
This optional setting is used in materials.txt and must be within a definition block. It can be used only once per definition block.
ViewRange <tiles>
Where <tiles> is the number of map tiles around the entity in which the fog of war will be cleared.
If not specified, ViewRange defaults to 0. (need to check, might be 1)
##Example
ViewRange 4
##Notes
Not yet tested to see what happens when this property is used on non-entity/vehicle objects. In theory it should work.
The ViewRange also seems to affect the targeting range of entities carrying ranged weapon equipment. The higher the ViewRange the further they can target their weapon.
##See Also
- [
Cctv (Object)](Cctv (Object))