A_ClearTarget

From ZDoom Wiki

Jump to: navigation, search

A_ClearTarget (no parameters)

Usage

Makes the calling actor forget about it's target, sound target, and last target. You can call this before jumping back to a monster's idle states to make a monster "give up" trying to chase after it's target after a while (for ex. if it's too far away), after which it will resume searching for targets or doing whatever else is specified in its spawn state.

Examples

Image:Nuvolachalk.png 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.
Personal tools