Npc cscanner: 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.
TomEdwards (talk | contribs) mNo edit summary |
|||
Line 5: | Line 5: | ||
[[Image:Combine scanner.jpg|frame|right|Combine Scanner]] | [[Image:Combine scanner.jpg|frame|right|Combine Scanner]] | ||
NPC modders should consider condensing ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers into one keyvalue, but still leave the old ones for backwards compatibility. | |||
{{npcnote}} | |||
==Keyvalues== | ==Keyvalues== |
Revision as of 12:13, 3 August 2005
Entity Description
NPC modders should consider condensing ShouldInspect, OnlyInspectPlayers, and NeverInspectPlayers into one keyvalue, but still leave the old ones for backwards compatibility.

Keyvalues
- spotlightlength
- <integer>
- spotlightwidth
- <integer>
- spotlightdisabled
- <boolean>
- ShouldInspect
- <boolean>
- OnlyInspectPlayers
- <boolean>
- NeverInspectPlayers
- <boolean>
Flags
Inputs
- DisableSpotlight
- InspectTargetPhoto <string>
- Tells the scanner to photograph the given entity, named by classname or by target name. !activator or !player works here also.
- InspectTargetSpotlight <string>
- Tells the scanner to spotlight the given entity, named by classname or by target name. !activator or !player works here also.
- InputSetFlightSpeed <integer>
- Sets the flight speed of the scanner
- InputShouldInspect <integer>
- Set whether should inspect or not
- SetFollowTarget <string>
- Set target to follow until told otherwise
- ClearFollowTarget
- Stop following our target
- SetDistanceOverride <float>
- Override the distance the scanner will attempt to keep between inspection targets and itself
- DeployMine
- Drop landmine (if carrying one)
- EquipMine
- Equip with landmine
Outputs
- OnPhotographPlayer
- Fired any time the scanner takes a picture of the player.
- OnPhotographNPC
- Fired any time the scanner takes a picture of an NPC.