A_Look
Jump to navigation
Jump to search
void A_Look()
Note: This function has been superseded by A_LookEx, which duplicates and extends its functionality. Use of the newer function is advised in order to maintain maximum flexibility in your code. |
Usage
Makes the calling actor (presumably a monster) look for its enemies it can attack. If it finds a target, it enters its See state sequence where it'll normally chase and attack its target.
Examples
Almost every monster in Doom uses A_Look. Here is code taken from the Imp monster.
Spawn: TROO AB 10 A_Look; loop;
A_Look is called on every animation frame in the Spawn state sequence to check for players.