A_TurretLook
From ZDoom Wiki
A_TurretLook
(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. This function is similar to A_Look but it only reacts to sound. Just seeing the player won't wake up a monster using this. This function must be used in the idle states of a monster.
The major difference between A_Look2 and A_TurretLook is that A_TurretLook doesn't do any random state jumps.
Examples
| Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated. |

