How to change how fast infection kills in Project Zomboid
Set Mortality = 6, inside ZombieLore in Zomboid/Server/main_SandboxVars.lua and restart the server.
ZombieLore.Mortality
How quickly the infection kills, from 1 instant to 7 never. Default 5, 2 to 3 days.
Mortality = <number>, Examples
Mortality = 6, One to two weeks.
Values
| Value | What it does |
|---|---|
| 1 | Instant |
| 2 | 0-30 Seconds |
| 3 | 0-1 Minutes |
| 4 | 0-12 Hours |
| 5Default | 2-3 Days |
| 6 | 1-2 Weeks |
| 7 | Never |
What it does
How long an infected player has left.
Good to know
- Set it in
Zomboid/Server/main_SandboxVars.luaon the **Files** tab (under **Advanced**) and restart the server. - It sits inside the
ZombieLore = { ... }block of that file.
Run it on your server
Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.
Your own
Project Zomboid server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.