Ai goal police: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 3: Line 3:
==Entity Description==
==Entity Description==


Defines an area to be policed. Used by the ''SetPoliceGoal'' input of [[npc_metropolice]]. [[:Category:NPCs|NPCs]] entering the policed area will be warned and/or supressed (beaten), depending on the settings.
[[Image:{{PAGENAME}}.png|left]]Defines an area to be policed. Used by the [[npc_metropolice#Inputs|SetPoliceGoal input]] of [[npc_metropolice]]. [[:Category:NPCs|NPCs]] entering the policed area will be warned and/or supressed (beaten), depending on the settings.{{clr}}


==Keyvalues==
==Keyvalues==

Revision as of 23:49, 29 March 2006

Template:Wrongtitle

Entity Description

Ai goal police.png

Defines an area to be policed. Used by the SetPoliceGoal input of npc_metropolice. NPCs entering the policed area will be warned and/or supressed (beaten), depending on the settings.

Keyvalues

  • policeradius
<float> Radius to police
  • policetarget
<target_destination> Target to police

Flags

  • 2 : Knock-out target past crossing plane
  • 4 : Do not leave post

Inputs

  • EnableKnockOut
Tells the goal to make the active policing NPC knock out its target
  • DisableKnockOut
Stop the active policing NPC from trying to knock out its target

Outputs

  • OnFirstWarning
Fires the first time a policing cop warns a target
  • OnSecondWarning
Fires the second time a policing cop warns a target
  • OnLastWarning
Fires when a policing cop warns a target for the last time
  • OnSupressingTarget
Fires when a policing cop starts to suppress (ie. beat) a target
  • OnKnockOut
Fires when a target has been knocked out