A_CheckThingCount

From SRB2 Wiki
Jump to navigation Jump to search

A_CheckThingCount is an action that calls a specified state if the number of active Objects of a specified type is greater than or equal to a specified number. The lower 16 bits of Var1 determine the number to check against; the upper 16 bits determine the Object type to check. The lower 16 bits of Var2 determine the state to call. The upper 16 bits of Var2 determine the range in which to check (in fracunits): Only Objects whose distance to the actor is less than or equal to this value will be counted. If the value is 0, the whole map is checked for Objects to count. Note that Objects that initially spawned with the MF_NOTHINK flag, such as many of the non-animated scenery items included in SRB2, may not be detected and therefore will not be counted.

This action originates from the v2.0 modification SRB2Morphed and was added to SRB2 itself in v2.1.

  Actions – Checking [view]
A_BubbleCheckA_CheckAmbushA_CheckHealthA_CheckHeightA_CheckRandomA_CheckRangeA_CheckRingsA_CheckTargetRingsA_CheckThingCountA_CheckTotalRingsA_CheckTrueRangeA_ChickenCheckA_LookA_SearchForPlayers