A_ChangeCountFlags

From ZDoom Wiki
Jump to navigation Jump to search

void A_ChangeCountFlags (int kill, int item = FLAG_NO_CHANGE, int secret = FLAG_NO_CHANGE)

Usage

Sets whether or not the calling actor should count towards the map's statistics of kills, items and secrets. If any of these parameters is set to 0, the actor is not counted towards the statistic represented by the parameter. If set to FLAG_NO_CHANGE or -1, no change takes place. If set to any other value, the actor is counted.

This function not only modifies the COUNTKILL/COUNTITEM/COUNTSECRET flags, but also the Total_Items, Total_Monsters and Total_Secrets fields of the LevelLocals struct.

Parameters

For any of the parameters below, set to true to count the actor towards the specified statistic, or false to not count. FLAG_NO_CHANGE will keep the flag unmodified:

  • int kill
Whether or not the actor should count towards the map's kills.The actor needs to be non-friendly and alive for any changes to take effect.
  • int item
Whether or not the actor should count towards the map's items.
  • int secret
whether or not the actor should count towards the map's secrets.

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.