Script:anchorblock: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptCommandPage |description=block or unblock pathfinding nodes |context=any |parameters= block bool True if nodes should be blocked, false if they should be unblocked |intro=All pathfinding nodes near the calling entity's mesh are blocked or unblocked. Blocked nodes are ignored when searching for a path for any entity. }} Category:Script commands") |
mNo edit summary |
||
Line 4: | Line 4: | ||
|parameters= | |parameters= | ||
block bool True if nodes should be blocked, false if they should be unblocked | block bool True if nodes should be blocked, false if they should be unblocked | ||
|intro=All pathfinding nodes near the calling entity's mesh are blocked or unblocked. Blocked nodes are ignored when searching for a path for any entity. | |intro=All pathfinding nodes near the calling entity's mesh are blocked or unblocked. Blocked nodes are ignored when searching for a path for any entity. To also allow or prevent [[:Category:NPCs|NPCs]] from walking trough this entity, combine this with {{Command|collison}}. | ||
}} | }} | ||
[[Category:Script commands]] | [[Category:Script commands]] |
Latest revision as of 16:45, 22 June 2022
The anchorblock
script command is used to block or unblock pathfinding nodes for an entity. All pathfinding nodes near the calling entity's mesh are blocked or unblocked. Blocked nodes are ignored when searching for a path for any entity. To also allow or prevent NPCs from walking trough this entity, combine this with collison
.
Usage
anchorblock <block>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
block |
bool |
True if nodes should be blocked, false if they should be unblocked |