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.
Darthkillyou (talk | contribs) |
m (tidy) |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=npc_bullseye}} | {{wrongtitle|title=npc_bullseye}} | ||
==Entity | |||
== Entity description == | |||
[[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}} | [[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}} | ||
==Keyvalues== | == Keyvalues == | ||
* {{kv basenpc}} | * {{kv basenpc}} | ||
Line 11: | Line 12: | ||
: <Integer> Unlike other NPCs level designers are allowed to set the health on bullseyes | : <Integer> Unlike other NPCs level designers are allowed to set the health on bullseyes | ||
==Flags== | == Flags == | ||
* {{fl basenpc}} | * {{fl basenpc}} | ||
Line 26: | Line 27: | ||
* {{ep1 add|2097152 : Collide against physics objects (Creates VPhysics Shadow)}} | * {{ep1 add|2097152 : Collide against physics objects (Creates VPhysics Shadow)}} | ||
==Inputs== | == Inputs == | ||
* {{i basenpc}} | * {{i basenpc}} | ||
==Outputs== | == Outputs == | ||
* {{o basenpc}} | * {{o basenpc}} | ||
Line 38: | Line 39: | ||
: Fires when no longer targeted. {{activator|activator}} & {{caller|caller}} | : Fires when no longer targeted. {{activator|activator}} & {{caller|caller}} | ||
==See | <!-- SDK nuts was closed. When (and if) this tutorial is ported to the VDC, provide the link to it. If the tutorial is posted in another site earlier than that, please link to that site. | ||
== See also == | |||
* [http://www.sdknuts.net/akg/tutorials/wiseNPC02.asp Example of Static and Dynamic targets] | |||
--> | |||
[[Category:Entities]] |
Revision as of 09:20, 11 February 2008
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