A_Look

Looks for players or other attackable actors in the game. If it finds a target, it enters its “See” state.

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.

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.

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.