planeCrash WIP
Module: vehicle_planecrashtest.lua
What it does
Simulates a plane crash near the player's position. Five vehicles (using Base.CarLightsPolice as a stand-in) are spawned in a cross pattern — one at the centre and four offset by 4 tiles in each cardinal direction. Each spawned vehicle has a random 10% chance per part of having that part destroyed. The centre vehicle's trunk is stocked with 5 axes. Immediately after spawning, 50 zombies are dispatched in waves of 5 every 240 ticks, each knocked down and then sprinting directly at the player.
Trigger type
planeCrash
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
| This module takes no parameters. All values (spawn location, zombie count, wave timing) are hardcoded. | ||||
| Internal Constant | Value | Description |
|---|---|---|
| Spawn offset | ±5 tiles (random) | Centre crash square relative to the player. |
| Debris pattern | +4 / −4 tiles | 4 additional vehicles arranged in a cross around the centre. |
| Total zombies | 50 | Total zombies spawned in waves. |
| Wave size | 5 | Zombies spawned per wave. |
| Wave delay | 240 ticks | Ticks between each wave. |
| Loot | 5x Base.Axe | Placed in the centre vehicle's trunk. |
Examples
Trigger a plane crash near the player
{ type="planeCrash" }
Use as a channel points event
{ type="planeCrash", message="!planeCrash" }
Use in a weighted random pool
{ type="planeCrash", weight=1 }