Script:viewblock: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptCommandPage |description=block the view of NPCs |context=any |parameters= enable bool Should this entity block the vision of NPCs |intro=<br> This view blocking affects the <code>^npcinsight</code> system variable as well as the {{Event|detectplayer}} and {{Event|undetectplayer}} events. }}") |
mNo edit summary |
||
Line 7: | Line 7: | ||
This view blocking affects the <code>^npcinsight</code> [[Script:Variables#System variables|system variable]] as well as the {{Event|detectplayer}} and {{Event|undetectplayer}} events. | This view blocking affects the <code>^npcinsight</code> [[Script:Variables#System variables|system variable]] as well as the {{Event|detectplayer}} and {{Event|undetectplayer}} events. | ||
View blocking is only in effect if the entity is not [[Script:objecthide|hidden]] and does not have [[Script:collision|collisions disabled]]. | |||
}} | }} |
Latest revision as of 15:16, 26 June 2022
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 |