Info beacon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created the page for info_beacon)
 
m (clean up, replaced: See Also → See also)
 
Line 40: Line 40:
: Set the boolean if the beacon should show health
: Set the boolean if the beacon should show health
; <code>SetHealthRatio</code> <[[float]]>
; <code>SetHealthRatio</code> <[[float]]>
: Set the health ratio to show. Between 0 and 1.0 where 1.0 is max health. Example use: [[func_breakable]] fires an output of OnHealthChanged send to this info_beacon with the input SetHealthRatio and the health will bar will change on the beacon.
: Set the health ratio to show. Between 0 and 1.0 where 1.0 is max health. Example use: [[func breakable]] fires an output of OnHealthChanged send to this info_beacon with the input SetHealthRatio and the health will bar will change on the beacon.
; <code>SetPrimary</code>
; <code>SetPrimary</code>
: Set the beacon to be primary.
: Set the beacon to be primary.
Line 57: Line 57:
: Removes this entity and all its [[Entity Hierarchy (parenting)|children]] from the world.
: Removes this entity and all its [[Entity Hierarchy (parenting)|children]] from the world.
}}
}}
==See Also==
==See also==
* [[trigger_capturepoint_zp]]
* [[trigger capturepoint zp]]
* [[func_breakable]]
* [[func breakable]]


[[Category:Entities]]
[[Category:Entities]]
[[Category:Zombie Panic! Source]]
[[Category:Zombie Panic! Source]]
[[Category:Zombie Panic! Source Entities]]
[[Category:Zombie Panic! Source Entities]]

Latest revision as of 10:25, 5 January 2024

Entity Description

An entity to show a hint at its position in Zombie Panic! Source. Will be shown at all times when on, even through walls.

Keyvalues

Name <string>
The targetname other entities refer to this entity by.
StartOn <boolean>
Should it start on and be visible.
Type<Choices>
The type to display.
Literal Value Description
0 Button
1 Human Defend
2 Human Destroy
3 Waypoint
4 Capture Point
Primary <boolean>
Is the beacon primary or is the info_beacon showing something with high priority, for example a main objective. The icon will be different compared to a non-primary info_beacon.
Show health <boolean>
Should it show the health? Starts with 100% health.
Custom Zombie Label <string>
Label shown to zombies. Displayed under the beacon. Leave empty to use default label.
Custom Survivor Label <string>
Label shown to survivors. Displayed under the beacon. Leave empty to use default label.

Inputs

Targetname:
OnUser1 to OnUser4
Fired in response to the FireUser inputs; see User Inputs and Outputs.
TurnOn / TurnOff
Turns the beacons visibility on and off
ShowHealth <boolean>
Set the boolean if the beacon should show health
SetHealthRatio <float>
Set the health ratio to show. Between 0 and 1.0 where 1.0 is max health. Example use: func breakable fires an output of OnHealthChanged send to this info_beacon with the input SetHealthRatio and the health will bar will change on the beacon.
SetPrimary
Set the beacon to be primary.
SetNormal
Set the beacon to be non-primary.
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.
Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.

See also