A_WraithFX2
Does nothing if the calling actor has no valid target.
A_WraithFX2
(no parameters)
Spawns a WraithFX2 at the calling actor's location and gives it a horizontal velocity, towards a random direction that deviate from its facing by up to 90°. There is a 50% chance for either left or right. The velocities on both X and Y axes are randomly between 1.0 and 1.5 unit, then adjusted by trigonometry according to the direction; so the practical combined velocity will be between 1.0 and 2.121.
This codepointer is restricted to WraithFX1 and derived classes.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.