barricadeEvent2 WIP

Module: barricadeEvent2 — environment_barricade_test2.lua

What it does

Barricades every unbarricaded window and door within a flat tile radius around the player's current position, regardless of building boundaries. The module sweeps a square grid of radius tiles in all directions and calls addRandomBarricades() on any IsoWindow or IsoDoor object that has not already been flagged in its mod data. Changes are transmitted so they persist for all clients.

Trigger type

barricadeEvent2

Parameters

Parameter Type Default Valid Values Description
type string required "barricadeEvent2" Must exactly match the module name.
radius number 10 Any positive integer Tile radius around the player within which all eligible windows and doors are barricaded.

Examples

Default 10-tile radius
{ type="barricadeEvent2" }
Large area barricade covering an entire neighbourhood block
{ type="barricadeEvent2", radius=50 }
Small personal radius, just the immediate surroundings
{ type="barricadeEvent2", radius=5 }