This article's documentation is for anything that uses the Source engine. Click here for more information.

trigger_playermovement

From Valve Developer Community
Revision as of 13:11, 4 January 2024 by WisdomBot (talk | contribs) (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Jump to navigation Jump to search
English (en)Translate (Translate)
C++ Class hierarchy
CTriggerPlayerMovement
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_playermovement is an e2 available in all Source Source games. It can be used to control player's movement options, for instance by automatically ducking or forcing walking speed.

Warning.pngWarning:Don't kill this trigger while players are touching. Players will stay in duck, walk or disable jump mode
Warning.pngWarning:Team Fortress 2Players will remain stuck in duck, walk, or disable jump mode if they die within the volume and the round subsequently resets. This behavior is not removed until the player enters and exits the trigger volume again after respawning. Untested in other games, but you should probably not use this entity in a place where players could die while touching it shortly before round reset.

Keyvalues

BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
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

Flags

Clients (in Left 4 Dead seriesLeft 4 Dead series survivors and SI) : [1]
NPCs (in Left 4 Dead seriesLeft 4 Dead series commons and witches) : [2]
(OBSOLETE, Uncheck me) : [16]
Disable auto player movement : [128]
Auto-duck while in trigger : [2048]
Auto-walk while in trigger Template:L4D add : [4096]
Disable jump while in trigger Template:L4d2 add : [8192]

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

See also