A_SpectralLightning

From ZDoom Wiki
Jump to navigation Jump to search

A_SpectralLightning
(no parameter)

Decrements threshold if it is not 0. Changes the x/y velocity of the calling actor to some values -3-3.

If the threshold is greater than 25 a SpectralLightningV2 is spawned otherwise a SpectralLightningV1 is spawned. The actors will be spawned at the ceiling within 150 map units (in 50 unit increments) from the calling actor. The spawned actor will have a z velocity of 18 downwards and will have the calling actors target and health transferred to it.

A SpectralLightningV2 will also be spawned with the same properties at the location of the calling actor.

This codepointer is restricted to SpectralLightningSpot and derived classes.