Info player observer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
("Toggle Spawn" ? is that correct input with space ?)
Line 1: Line 1:
{{tabs|info_player_observer|goldsrc=1|source=1|main=source}}
{{TabsBar|main=gs|base=info_player_observer}}
{{cleanup|Use {{t|KV}} template.}}
{{This is a|point entity|name=info_player_observer|game=Zombie Panic! Source}} The observer (aka: spectate) spawn point entity used in [[Zombie Panic! Source]].
{{this is a|point entity|name=info_player_observer|game=Zombie Panic! Source}} The observer (aka: spectate) spawn point entity used in [[Zombie Panic! Source]].


== Keyvalues ==
== Keyvalues ==
{{ScrollBox|title=Angles|
{{KV Targetname}}
; Pitch Yaw Roll (Y Z X) <code><[[QAngle|angle]]></code>
{{KV Angles}}
: This entity's angular orientation in the world.
 
}}
== Inputs ==
== Inputs ==
{{ScrollBox|title=Targetname|
{{I|Toggle Spawn|Toggles the spawn on and off.}}
; <code>OnUser1</code> <span style<nowiki>=</nowiki>"font-weight:normal;">to</span> <code>OnUser4</code>
: Fired in response to the <code>FireUser</code> inputs; see [[User Inputs and Outputs]].
; <code>Enable Spawn</code> / <code>Disable Spawn</code>
: Turns the spawn point on and off.
; <code>AddOutput <[[string]]></code>
: Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
:Format: <code><key> <value></code>
:Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>
; <code>FireUser1</code> <span style<nowiki>=</nowiki>"font-weight:normal;">to</span> <code>FireUser4</code>
: Fire the <code>OnUser</code> outputs.
; <code>Kill</code>
: Removes this entity from the world.
; <code>KillHierarchy</code>
: Removes this entity and all its [[Entity Hierarchy (parenting)|children]] from the world.
; <code>Toggle Spawn</code>
: Toggles the spawn on and off.
}}
==See also==
* [[info_player_start]]
* [[info_player_human]]
* [[info_player_zombie]]
* [[info_player_common]]
* [[point_viewcontrol]], which performs a similar function in {{css}} {{csgo}} {{dods}}


[[Category:Entities]]
== See also ==
[[Category:Zombie Panic! Source]]
* {{ent|info_player_start}}
[[Category:Zombie Panic! Source Entities]]
* {{ent|info_player_human}}
* {{ent|info_player_zombie}}
* {{ent|info_player_common}}
* {{ent|point_viewcontrol}}, which performs a similar function in {{css}} {{csgo}} {{dods}}

Revision as of 12:17, 3 May 2025

info_player_observer is a point entity available in Zombie Panic! Source Zombie Panic! Source. The observer (aka: spectate) spawn point entity used in Zombie Panic! Source.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

Toggle Spawn
Toggles the spawn on and off.

See also