public static void ExilePather.EditTriggerableBlockages(byte[] navData, Vector2i boundsMin, Vector2i boundsMax, NavDataOperation operation)
Applies caller-supplied packed NavData to the active ground terrain, refreshes affected tiles once, and sends OnObstacleUpdate after success. No NetworkObject or saved object identity is required. Does not modify the game's terrain or change an object's state.
voidNo return value.Parameters
navData- Parameter type:
byte[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.Row-major packed clearance values (0..5), two cells per byte: even global X in the low nibble, odd global X in the high nibble. Row stride is ceil(boundsMax.X / 2) - floor(boundsMin.X / 2). At least stride * height bytes are required; trailing bytes (such as the flying layer) are ignored. Padding nibbles outside the bounds are ignored. A separate source array is never modified or retained. If source and destination are the same array, source values are copied before terrain edits.
boundsMin- Parameter type:
Vector2iInclusive minimum grid coordinates in the active map, not world coordinates.
boundsMax- Parameter type:
Vector2iExclusive maximum grid coordinates. Empty bounds make no terrain changes.
operation- Parameter type:
NavDataOperationAdd/Subtract a delta with saturation at 5/0, or Replace with absolute values.
Requires initialized navigation. The caller owns the data, area selection and timing; no provenance or object-state inference is performed. Opened component NavData may contain absolute values, not a delta. Add/Subtract accumulate on repeated calls and are not necessarily inverses after saturation. Replace writes zero too: zero is not a transparent mask. Unaddressed cells and temporary obstacles are preserved. No persistent object override is registered: later object edits or Reload can replace these values. Only ground navigation is changed, not the ranged/flying map. Invalid bounds, short input or in-bounds values outside 0..5 are rejected before any terrain write. Do not change the input array concurrently. On refresh failure, terrain edits remain queued; retry UpdateObstacles, not this operation, to avoid applying a delta twice. Added in public DPB2 0.4.5.103. Requires initialized navigation for the current area. Minimum bounds are inclusive and maximum bounds exclusive. Changes ground navigation, not game terrain or the ranged/flying map. Temporary obstacles are retained. Add/Subtract accumulate and saturate; Replace assigns absolute values including zero. Later object updates or Reload can replace these edits. If refresh fails, retry UpdateObstacles, not the delta operation.