barricadeEvent1 WIP

Module: barricadeEvent1 — environment_barricade_test1.lua

What it does

Automatically barricades every unbarricaded window and door in the same building the player is currently standing in. The module detects the player's current building, sweeps a 30-tile radius for tiles that share that building reference, and calls addRandomBarricades() on any IsoWindow or IsoDoor object that has not already been marked as barricaded via mod data. Each affected object has its mod data flagged and transmitted so the change persists across clients.

Trigger type

barricadeEvent1

Parameters

Parameter Type Default Valid Values Description
type string required "barricadeEvent1" Must exactly match the module name. This event takes no additional parameters.

Examples

Barricade the player's current building (only valid form)
{ type="barricadeEvent1" }
Can be sent as a SIF event payload
{ type="barricadeEvent1", user="StreamerName", viewer="DonorName" }
Combining with a message for context (extra keys are ignored by the module)
{ type="barricadeEvent1", message="Your base is being secured!" }