npc_rocket_turret

From Source Entities
Jump to navigation Jump to search

npc_rocket_turret is a point entity present in both P1.pngP2.pngPortal games. A rocket turret.

To do: Very buggy in P2.png. Give instructions on fixing.

Flags[edit | edit source]

  • 1: Start Disabled

Inputs[edit | edit source]

SetTarget <target_destination>
Tells the turret to attack an entity.
Destroy
Makes the turret play "destruction" effects and stop moving. The turret can be disabled and re-enabled.
Enable
Makes the entity active.
Disable
Makes the entity inactive.
Toggle
If on, turn off. If off, turn on.

Outputs[edit | edit source]

OnLostTarget
Fires when the turret's target hides.
OnFoundTarget
Fires when the turret finds an unobstructed target.