A_CHolyTail

From ZDoom Wiki
Jump to navigation Jump to search

A_CHolyTail
(no parameters)

If the calling actor has no valid target, or a target whose health is below 0, the codepointer removes recursively it, its tracer and its tracer's tracer, etc. from the map. Keep in mind that a projectile's target is the actor that shot it, not the intended victim.

Otherwise, if the calling actor can stand 14 units away from its target, it adjusts its Z position to be 5 units below the target.

The calling actor's recursive tracer chain are then moved to follow it, each 10 map units behind and all at the same altitude.

This codepointer is restricted to HolyTail and derived classes.