npc_security_camera

From Source Entities
Jump to navigation Jump to search

Code classes:

npc_security_camera is a point entity present in both P1.pngP2.pngPortal games. It's a security camera.

Flags[edit | edit source]

  • 32: Autostart - Camera is enabled by default.

Keyvalues[edit | edit source]

Look at co-op player's pings instead (LookAtPlayerPings) <boolean> (only available in P2.png)
If in coop, looks at the locations of player pings instead of players.
Team Pings to Observe (TeamToLookAt) <choices> (only available in P2.png)
Coop pings to look at.
  • 1: Both
  • 2: Orange
  • 3: Blue
Which team to follow (TeamPlayerToLookAt) <choices> (only available in P2.png)
Which player to look at.
  • 0: Both
  • 2: Orange
  • 3: Blue

Inputs[edit | edit source]

Ragdoll
Makes the camera pop off the wall.
Enable
Makes the entity active.
Disable
Makes the entity inactive.
Toggle
If on, turn off. If off, turn on.
LookAtBlue  (only available in P2.png)
Sets Which team to follow to Blue.
LookAtOrange  (only available in P2.png)
Sets Which team to follow to Orange.
LookAllTeams  (only available in P2.png)
Sets Which team to follow to Both.

Outputs[edit | edit source]

OnDeploy
Fires when the camera turns on.
OnRetire
Fires when the camera turns off.
OnTaunted  (only available in P2.png)
Fires when a coop player starts taunting the camera.
OnTauntedBlue  (only available in P2.png)
Fires when ATLAS starts taunting the camera.
OnTauntedOrange  (only available in P2.png)
Fires when P-Body starts taunting the camera.
OnTauntedFinished  (only available in P2.png)
Fires when a coop player finishes taunting the camera.
OnTauntedBlueFinished  (only available in P2.png)
Fires when ATLAS finishes taunting the camera.
OnTauntedOrangeFinished  (only available in P2.png)
Fires when P-Body finishes taunting the camera.