npc_spotlight
Jump to navigation
Jump to search
This article or section needs a screenshot to help visually convey the subject.
You can upload screenshots at Special:Upload. For help, see Help:Images.
You can upload screenshots at Special:Upload. For help, see Help:Images.
npc_spotlight
is a point entity available in Half-Life 2, Half-Life 2: Episode One, Half-Life 2: Episode Two, and Half-Life 2: Deathmatch.
Entity description
A spotlight that, if the target is in range, constantly aims at the target.
Note:This entity is NOT used for the turrets before Nova Prospect, it is a normal point_spotlight parented to the gun!
Bug:This entity does not spawn in Half-Life 2!
Todo: Does it work for any other games?
[todo tested in?]Keyvalues
CBaseCombatCharacter:
CAI_BaseNPC:
DamageFilter:
|
Flags
- 1 : Start On
- 2 : No Dynamic Light
- 4 : Start rotation on
- 8 : Reverse Direction
- 16 : X Axis
- 32 : Y Axis
- 65536 : Start Track On
- 131072 : Start Light On
- 262144 : No Dynamic Light
- 524288 : Never Move
Inputs
CAI_BaseNPC:
CBaseCombatCharacter:
DamageFilter: |
- LightOn
- Turn the spotlight on.
- LightOff
- Turn the spotlight off.
- TrackOn
- Makes the spotlight follow the target(s).
- TrackOff
- Stops the spotlight from following the target(s).
Outputs
|
- OnAlert
- Fires when the spotlight alerted by sound.
- DetectedEnemy <string>
- Outputs enemy entity when spotlight finds and starts tracking enemy.
- LostEnemy <string>
- Outputs enemy entity when spotlight loses enemy that it's tracking, if enemy still exists.
- SquadDetectedEnemy <string>
- Outputs enemy entity when squad finds and starts tracking enemy.
- SquadLostEnemy <string>
- Outputs enemy entity when squad loses enemy that it's tracking, if entity still exists.
- LightPosition <string>
- Position of the end of the spotlight beam.
Categories:
- Pages that need screenshots
- Screenshot needed
- Stubs
- Half-Life 2 entities
- Half-Life 2 point entities
- Half-Life 2: Episode One entities
- Half-Life 2: Episode One point entities
- Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two point entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch point entities
- Pages with uncategorized bugs
- Lighting