set_kill_z
Sets the editor world's KillZ death plane and optional kill damage type, destroying actors that fall below a specified Z height when bounds checks are enabled.
Instructions
Set the KillZ death plane on the EDITOR world's WorldSettings: any actor falling below this world Z is destroyed, provided the world's bounds checks are enabled (read that flag with get_world_settings_detail -- with it off, KillZ does nothing and the fall looks like a bug). Optionally sets the damage type applied on the kill. Values come back RE-READ off WorldSettings, not echoed. Undoable, but it dirties the MAP: save_level to keep it.
Returns: { applied_kill_z: number, kill_z: number (both re-read off WorldSettings), kill_z_damage_type: string ('None' if unset), success: bool (hardcoded) }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kill_z | Yes | World-space Z height (cm) below which actors get destroyed. Put it under the lowest playable geometry, not at 0. | |
| kill_z_damage_type | No | Optional UDamageType class name or full path (e.g. 'DamageType' or '/Script/Engine.DamageType'). Resolved BEFORE anything is written, so a bad name is a clean error and KillZ is left untouched. |