freeze
zombie_freeze.lua — Zombie module
What it does
Finds every zombie within a given radius of the player and sets their bump type to "fake", which effectively freezes them in place by disabling their collision response. All zombies within the cell are checked; only those within the configured distance are affected.
Trigger type
freeze
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
radius | number | 20 | Any positive number | Distance in world units from the player within which zombies will be frozen. |
Examples
Freeze all zombies within the default 20-unit radius
{ type="freeze" }
Freeze only the closest zombies within 5 units
{ type="freeze", radius=5 }
Freeze a large area around the player
{ type="freeze", radius=50 }