viewblock
Jump to navigation
Jump to search
The viewblock script command is used to block the view of NPCs for an entity.
This view blocking affects the ^npcinsight system variable as well as the detectplayer and undetectplayer events.
View blocking is only in effect if the entity is not hidden and does not have collisions disabled.
Usage
viewblock <enable>
Context: Any Entity
Parameters:
| Parameter | Type | Description |
|---|---|---|
enable |
bool |
Should this entity block the vision of NPCs |