Npc bullseye: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Entity Description: was not a spelling mistake)
Line 1: Line 1:
{{wrongtitle|title=npc_bullseye}}
{{wrongtitle|title=npc_bullseye}}
==Entity Description==
==Entity Description==
Bullseyes act as targets for other [[NPC]]s to attack a non-NPC object. In order to get an NPC to attack the location of a bullseye, use an [[ai_relationship]] to make the attacking NPC hate the bullseye.
[[Image:Bullseye.png|left]]'''npc_bullseyes''' act as targets for other [[NPC]]s to attack a non-NPC object. In order to get an NPC to attack the location of a bullseye, use an [[ai_relationship]] to make the attacking NPC hate the bullseye.{{clr}}


{{npcnote}}
{{npcnote}}

Revision as of 00:19, 30 March 2006

Template:Wrongtitle

Entity Description

Bullseye.png

npc_bullseyes act as targets for other NPCs to attack a non-NPC object. In order to get an NPC to attack the location of a bullseye, use an ai_relationship to make the attacking NPC hate the bullseye.

Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Keyvalues

  • health
<Integer> Unlike other NPCs level designers are allowed to set the health on bullseyes

Flags

  • 65536 : Not Solid
  • 131072 : Take No Damage
  • 262144 : Enemy Damage Only
  • 524288 : Bleed
  • 1048576 : Perfect Accuracy — an NPC attacking the bullseye will do so with perfect accuracy

Inputs

Outputs

  • OnTargeted
Fires when targeted
  • OnReleased
Fires when no longer targeted

See Also

Example of Static and Dynamic targets