A_Look
Jump to navigation
Jump to search
A_Look
(no parameters)
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. |
Looks for players or other attackable actors in the game. If it finds a target, it enters its “See” state.
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 to check for players.