A_SpotLightning
From ZDoom Wiki
A_SpotLightning
(no parameters)
Spawns a SpectralLightningSpot, set its threshold field to 25, its health to -2, its target to the calling actor and its tracer to the calling actor's target (standard operating procedure for homing missiles).
This codepointer is restricted to SpectralMonster and Programmer and actors inheriting from one of those.