A_WraithFX2

From ZDoom Wiki
Revision as of 18:10, 30 September 2009 by Gez (talk | contribs) (Created page with '{{DISPLAYTITLE:A_WraithFX2}} '''A_WraithFX2'''<br> (no parameters)<br> Does nothing if the calling actor has no valid target. Spawns a {{Class|WraithFX2}} at the calling actor'…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A_WraithFX2
(no parameters)

Does nothing if the calling actor has no valid target.

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.