ForceLightning

From ZDoom Wiki
Jump to navigation Jump to search

native void ForceLightning(int mode = 0) (New from 4.12)

Usage

Performs a lightning flash. Functions the same way as the Light_ForceLightning special, but from ZScript directly.

Parameters

  • int mode
Lightning mode, same as the Light_ForceLightning special:
  • 0: Makes lightning flash immediately and keeps the map in lightning mode as if it had been set in MAPINFO.
  • 1: Makes lightning flash only once and terminates lightning mode right away.
  • 2: Terminates lightning mode now. (Will not interrupt a current lightning flash, however)

See also