Npc bullseye: Difference between revisions
Jump to navigation
Jump to search
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
m (!activator & !caller) |
m (→Outputs: {{activator}} & {{caller}}) |
||
Line 31: | Line 31: | ||
* '''OnTargeted''' | * '''OnTargeted''' | ||
: Fires when targeted. | : Fires when targeted. {{activator|activator}} & {{caller|caller}} | ||
* '''OnReleased''' | * '''OnReleased''' | ||
: Fires when no longer targeted. | : Fires when no longer targeted. {{activator|activator}} & {{caller|caller}} | ||
==See Also== | ==See Also== |
Revision as of 19:49, 16 April 2006
Entity Description
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.

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. (!activator is the activator) & Template:Caller
- OnReleased
- Fires when no longer targeted. (!activator is the activator) & Template:Caller