A_SetFriendly

From ZDoom Wiki
Jump to navigation Jump to search

(development version 55ce051 only)

void A_SetFriendly (bool set)

Usage

Sets or clears the FRIENDLY flag of the calling actor while updating the total monster count of the map accordingly. If the calling actor's health is 0 or below, the flag is merely changed, while the total monster count remains untouched.

Parameters

  • set: whether to set or clear the flag. If this is true, the flag is set, otherwise if it is false, the flag is cleared.

Examples

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 contributions are greatly appreciated.