Jump to navigation Jump to search
Bool HitFriend ()
NOTE: This function only works with friendly monsters, unfriendly monsters will not be able to use this function to avoid hitting other unfriendly monsters !
This function is used by friendly monsters to ensure that they won't hit other friendly monsters when attacking. It is used by monster refiring functions such as A_MonsterRefire and when monsters check if they can do a ranged attack.
The function returns true if another friendly monster would be hit. And returns false if not, or if the caller is not friendly or has no target at all.
|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 contributions are greatly appreciated.|