npc_portal_turret_floor

From Valve Developer Community

Jump to: navigation, search
Aperture Science floor turret

[Portal] npc_portal_turret_floor is a point entity available in Portal. It is a freestanding Aperture Science turret.

Keyvalues

Damage pushes player <bool>
Being hit by this turret will push the player back.
Skin Number <int>
Which skin to use for this turret. Set to 0 to select randomly.

Angles:

Pitch Yaw Roll (Y Z X) <angle>
This entity's angular orientation in the world.

Targetname:

Name <string>
The targetname other entities refer to this entity by.

Flags

  • Autostart
  • Start Inactive
  • Fast Retire
  • Out of Ammo
  • Citizen modified (Friendly) (New with Orange Box)

Inputs

FireBullet <targetname>
Causes the turret to instantly fire at the specified entity.
Enable
Disable
Toggle
Active/deactivate the turret's mechanisms.
DepleteAmmo
RestoreAmmo
Depletes ammo from a turret, causing it to dry-fire, or restores ammo. Turrets never run out on their own.
SelfDestruct (New with Orange Box)
Emit a warning then self-destruct in a small explosion.

Targetname:

Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.

Outputs

OnDeploy
OnRetire
Turret has become active and dangerous or inactive and harmless.
OnTipped
Turret has been tipped over and is inactive.
OnPhysGunPickup
OnPhysGunDrop
Picked up/released by Gravity Gun. To do: And +use?

Targetname:

OnUser1 to OnUser4
Fired in response to the FireUser inputs; see User Inputs and Outputs.
OnKilled (New with Left 4 Dead)
Fired when the entity is killed and removed from the game.

See Also

Personal tools