# A_DragonFlight

Jump to navigation
Jump to search

**A_DragonFlight**

(*no parameter*)

Attempts to seek the tracer target with a max turn of 8 degrees and a threshold of 4 degrees.

If the tracer target is SHOOTABLE then the function has a 25% chance of performing an attack. If in melee range it will do an attack dealing 10-80 points of damage, or it will have a 50% chance of attacking with a DragonFireball.

Finally, if the actor reaches the tracer target it will need to pick a new tracer target. If the actor has a target, then it will have 78% chance of scanning the tids in the tracer target's arguments for the nearest thing based on angles. Otherwise it will just randomly pick a valid tid from the arguments.

This codepointer is restricted to Dragon and derived classes.