Func flagdetectionzone: Difference between revisions
Jump to navigation
Jump to search

(We didn't add this when SD was added? sloppy!) |
No edit summary |
||
| (15 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
{{stub}} | {{TF2 topicon}} | ||
{{LanguageBar|title=func_flagdetectionzone}} | |||
{{CD|CFlagDetectionZone|file1=func_flagdetectionzone.cpp}}{{stub}} | |||
{{this is a|brush entity|name=func_flagdetectionzone|game=Team Fortress 2}} | |||
==Entity description== | |||
Detects when the flag (intelligence/australium/bomb) enters a zone. Compare with [[func_flag_alert]]. | |||
Detects when the flag (intelligence/australium/bomb) enters a zone. | |||
==Keyvalues== | ==Keyvalues== | ||
| Line 10: | Line 12: | ||
{{KV EnableDisable}} | {{KV EnableDisable}} | ||
{{KV TFTeam}} | {{KV TFTeam}} | ||
{{KV|alarm|bool| | {{KV|alarm|bool|Trigger bomb alarm when flag enters zone.}} | ||
==Inputs== | ==Inputs== | ||
| Line 16: | Line 18: | ||
{{I Parentname}} | {{I Parentname}} | ||
{{I EnableDisable}} | {{I EnableDisable}} | ||
{{I|Test|Send OnStartTouchFlag & OnPickedUpFlag outputs if any player with flag is touching. Send OnEndTouchFlag & OnDroppedFlag outputs if no player with flag is touching.}} | |||
==Outputs== | ==Outputs== | ||
{{ | {{O|OnStartTouchFlag|Sent when a flag or flag carrier first touches the zone.}} | ||
{{O|OnEndTouchFlag|Sent when a flag or flag carrier stops touching the zone.}} | |||
{{O|OnDroppedFlag|Sent when a flag is dropped in the zone.}} | |||
{{O|OnPickedUpFlag|Sent when a flag is picked up in the zone.}} | |||
== See | == See also == | ||
*[[func_flag_alert]] | *[[func_flag_alert]] | ||
Latest revision as of 03:54, 7 October 2025
| CFlagDetectionZone |
func_flagdetectionzone is a brush entity available in
Team Fortress 2.
Entity description
Detects when the flag (intelligence/australium/bomb) enters a zone. Compare with func_flag_alert.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enableinput).
TeamNum:
Inputs
Parentname:
- SetParent <string>
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string>
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string>
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
- Test
- Send OnStartTouchFlag & OnPickedUpFlag outputs if any player with flag is touching. Send OnEndTouchFlag & OnDroppedFlag outputs if no player with flag is touching.
Outputs
- OnStartTouchFlag
- Sent when a flag or flag carrier first touches the zone.
- OnEndTouchFlag
- Sent when a flag or flag carrier stops touching the zone.
- OnDroppedFlag
- Sent when a flag is dropped in the zone.
- OnPickedUpFlag
- Sent when a flag is picked up in the zone.