Npc bullseye: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (tidy)
m (Robot: fixing template case.)
Line 25: Line 25:
* 1048576 : Perfect Accuracy — an NPC attacking the bullseye will do so with perfect accuracy
* 1048576 : Perfect Accuracy — an NPC attacking the bullseye will do so with perfect accuracy


* {{ep1 add|2097152 : Collide against physics objects (Creates VPhysics Shadow)}}
* {{EP1 add|2097152 : Collide against physics objects (Creates VPhysics Shadow)}}


== Inputs ==
== Inputs ==

Revision as of 19:18, 19 January 2009

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
  • 2097152 : Collide against physics objects (Creates VPhysics Shadow) (in all games since Half-Life 2: Episode One)

Inputs

Outputs

  • OnTargeted
Fires when targeted. (!activator is the activator) & Template:Caller
  • OnReleased
Fires when no longer targeted. (!activator is the activator) & Template:Caller