ragdollTest
zombie_ragdolltest.lua — Zombie module
What it does
Plays the "falldown-uppercut-ragdoll" animation on every living zombie within 5 units of the player. The check uses player:DistTo(z) and skips any zombie that is already dead. This is a demonstration/test module for the ragdoll animation system.
Trigger type
ragdollTest
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
| This module accepts no parameters. The range is hardcoded to 5 units. | ||||
Examples
Play ragdoll animation on nearby zombies
{ type="ragdollTest" }
Extra keys are ignored
{ type="ragdollTest", label="uppercut wave" }
Works well paired with a spawn event
{ type="ragdollTest" }