A_M_FireMissile

From ZDoom Wiki
Jump to navigation Jump to search

A_M_FireMissile
(no parameters)

Does nothing if the calling actor has no valid target. If it has a target that is within melee range, calls A_M_Punch(1) instead of doing anything else.

Otherwise, calls A_FaceTarget and fires a Rocket. This replicates RocketLauncher fire.

This codepointer is restricted to ScriptedMarine and derived classes.