ghost
Jump to navigation
Jump to search
ghost
is a point entity available in Team Fortress 2. It creates a ghost that will move in the direction it is facing then disappear after a few seconds. It will spook any players that go near it and will change direction to avoid collision with walls or props.
Confirm:how many NPC KVs actually work on this entity?
Keyvalues
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
CBaseCombatCharacter:
CAI_BaseNPC:
DamageFilter:
|
Flags
Wait Till Seen : [1]
Gag : [2]
Fall to ground (unchecked means teleport to ground) : [4]
Efficient : [16]
Wait For Script : [128]
Long Visibility/Shoot : [256]
Fade Corpse : [512]
Template NPC : [2048]
Note:This flag is disabled in episodic for player companions, because the
StartScripting input does this.Don't drop weapons : [8192]
|
Inputs
CAI_BaseNPC:
CBaseCombatCharacter:
DamageFilter: |
Outputs
- OnIgnite
- Fired when the entity is Ignited.
FGD Code
@PointClass base(BaseNPC, EnableDisable, TeamNum) sphere(fademindist) sphere(fademaxdist) color(0 200 200) line(255 0 0, targetname, enemyfilter) line(255 255 255, targetname, target) studio("models/props_halloween/ghost.mdl") = ghost: "Ghost" []