godMode

Module: godMode — player_godMode.lua

What it does

Enables god mode on the local player for a configurable number of in-game minutes. The player says "God Mode Enabled!" when it activates and "God Mode Disabled!" when it expires. A per-minute countdown timer is registered using Events.EveryOneMinute and cleaned up automatically on expiry. If god mode is already active, triggering again has no effect (the module is guarded against stacking).

Trigger type

godMode

Parameters

ParameterTypeDefaultValid ValuesDescription
type string required "godMode" Module trigger identifier.
duration number 10 Any positive integer Number of in-game minutes god mode remains active before automatically disabling.

Examples

Default 10 in-game minutes of god mode
{ type="godMode" }
Brief 2-minute protection window
{ type="godMode", duration=2 }
Extended 30-minute protection
{ type="godMode", duration=30 }