zSpeed

zomboid_zSpeed.lua — Zombie module

What it does

Sets the walk type (movement animation and speed) of all zombies within a given radius of the player. Only the pre-validated walk type strings are accepted; any other value silently aborts. Useful for dramatically changing how a horde moves mid-game.

Trigger type

zSpeed

Parameters

ParameterTypeDefaultValid ValuesDescription
wtstringrequiredSee belowWalk type to apply to all zombies in range. The event aborts if this is missing or invalid.
radiusnumber20Any positive numberDistance from the player within which zombies will have their walk type changed.

Valid wt values:

Sprint1 Sprint2 Sprint3 Sprint4 Sprint5 1 2 3 4 5 Slow1 Slow2 Slow3

Examples

Make all nearby zombies sprint at maximum speed
{ type="zSpeed", wt="Sprint1" }
Slow down zombies within a wider radius
{ type="zSpeed", wt="Slow3", radius=40 }
Medium sprint for zombies very close to the player
{ type="zSpeed", wt="Sprint3", radius=8 }