logic_npc_counter_aabb
logic_npc_counter_aabb is a point entity available in all
Source 2 games. It does calculations based on the number of a specified type of NPC in a specified region.
Keyvalues
parentname or target).Also displayed in Hammer's 2D views and Entity Report.
Box Outer Mins (box_outer_mins) <vector>
Box Outer Maxs (box_outer_maxs) <vector>
Start Disabled (startDisabled) <boolean>
Enable input).Source Entity Name (sourceEntityName) <targetname>
On Min Count All (minCount) <integer>
On Max Count All (maxCount) <integer>
Min Factor All (minFactor) <integer>
Max Factor All (maxFactor) <integer>
Class name of NPC 1 to count (NPCType1) to Class name of NPC 1/2/3 to count (NPCType3) <npcclass>
NPC State 1 (NPCState1) to NPC State 3 (NPCState3) <choices>
Value Description -1Any 0None 1Idle 2Alert 3Combaat 4Script 5Playdead 6Prone 7Dead
Invert State (invertState1) to {{{to}}} (invertState3) <boolean>
On Min Count 1 (minCount1) to On Min Count 3 (minCount3) <integer>
On Max Count 1 (maxCount1) to On Max Count 3 (maxCount3) <integer>
Min Factor 1 (minFactor1) to Min Factor 3 (minFactor3) <integer>
Max Factor 1 (maxFactor1) to Max Factor 3 (maxFactor3) <integer>
Default Dist 1 (defaultDist1) to Default Dist 3 (defaultDist3) <float>
Inputs
- Enable
- Enable the entity
- Disable
- Disable the entity
- SetSourceEntity
- Set the name of the entity to base this entities location on. This check will follow the entity as it moves.
Outputs
- OnMinCountAll
- Fired when the count of all npcs transitions to the min count or less.
- OnMaxCountAll
- Fired when the count of all npcs transitions to the max count or greater.
- OnRangeFactorAll
- Outputs the factor of the count of all npcs.
- OnMinPlayerDistAll
- Outputs distance to the NPC, of all NPCs, that is closest to player.
- OnMinCount1 to OnMinCount3
- Fired when the count of npc 1/2/3 transitions to the min count or less.
- OnMaxCount1 to OnMaxCount3
- Fired when the count of npc 1/2/3 transitions to the max count or greater.
- OnRangeFactor1 to OnRangeFactor3
- Outputs the factor of the count of npc 1/2/3.
- OnMinPlayerDist1 to OnMinPlayerDist3
- Outputs distance to the NPC, of NPCs 1, that is closest to player.