This article's documentation is for the "GoldSrc" engine. Click here for more information.

trigger_push

From Valve Developer Community
Jump to: navigation, search

trigger_push is a brush entity available in all GoldSrc GoldSrc games. It is a trigger volume that pushes entities that touch it.

Key Values

Trigger:


Target:
Target (???) <target_destination>
The targetname of an entity this entity will trigger when activated.

Targetname:
Name (targetname) <targetname>
The targetname that other entities refer to this entity by.
Kill target (killtarget) <target_destination>
Remove this entity from the game on activation.
Target Path (netname) <target_destination> (not in Team Fortress Classic)
Target path.
Master (master) <string>
Name of a master entity.
Sound Style (sounds) <choices>
  • 0 : "No Sound"
Delay before trigger (delay) <string>
The time in seconds before the trigger should trigger its target.
Message (set sound too!) (message) <string>
Message to be shown.

Angles:
Pitch Yaw Roll (Y Z X) (angles) <angle>
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.
Speed of push (speed) <integer>



TFButtonCriteria:
Team allowed to activate entity (team_no) <choices> (only in Team Fortress Classic)
  • 0: Any
  • 1: Blue
  • 2: Red
  • 3: Yellow
  • 4: Green
Targetname of teamcheck goal (teamcheck) <string> (only in Team Fortress Classic)
Player class allowed to activate entity (playerclass) <choices> (only in Team Fortress Classic)
  • 0: Any
  • 1: Scout
  • 2: Sniper
  • 3: Soldier
  • 4: Demolitions man
  • 5: Medic
  • 6: Heavy Weapons Guy
  • 7: Pyro
  • 8: Spy
  • 9: Engineer
Has item # (items_allowed) <integer> (only in Team Fortress Classic)
The player must be carrying this item to use this entity.
Has item from group # (h_i_g) <integer> (only in Team Fortress Classic)
To use this entity, the player must be carrying any item from this group.
Hasn't item from group # (hasnt_item_from_group) <integer> (only in Team Fortress Classic)
To use this entity, the player must not be carrying any item from this group.
If item # has moved (if_item_has_moved) <integer> (only in Team Fortress Classic)
A player can only use the entity if this item is not in its original spawn location.
If item # hasn't moved (if_item_hasnt_moved) <integer> (only in Team Fortress Classic)
A player can only use the entity if this item is in its original spawn location.
If goal # active (if_goal_is_active) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the active state.
If goal # inactive (if_goal_is_inactive) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the inactive state.
If goal # removed (if_goal_is_removed) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the removed state.
If group # active (if_group_is_active) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the active state.
If group # inactive (if_group_is_inactive) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the inactive state.
If group # removed (if_group_is_removed) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the removed state.


Flags

  •  [1] : Once Only
  •  [2] : Start Off
  •  [4] : Pushables