Func flag alert: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: Unicodifying, replaced: {{language subpage → {{langsp)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{this is a|e2|name=func_flag_alert|game=Team Fortress 2}}
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{this is a|brush entity|name=func_flag_alert|game=Team Fortress 2}}


== Entity description ==
== Entity description ==

Revision as of 18:19, 17 May 2024

English (en)Translate (Translate)

func_flag_alert is a brush entity available in Team Fortress 2 Team Fortress 2.

Entity description

Alerts are triggered when an enemy carrying a flag starts touching the area (or any player for an area with no team). Compare with func_flagdetectionzone.

Keyvalues

Play alert sound ([todo internal name (i)]) <boolean>
Play the sound when the alert is triggered.
Delay between alerts (in seconds) ([todo internal name (i)]) <integer>
The amount of time between alerts being triggered (per team).
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

TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

SetTeam <integerRedirectInput/integer>
Changes the entity's team.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.

Outputs

OnTriggeredByTeam1
Sent when RED triggers the alert.
OnTriggeredByTeam2
Sent when BLUE triggers the alert.