Skip to main content

player_capabilities

player_capabilities icon
Point entityPorted from Featureful

A player_capabilities turns off or on what the player who triggered it can do: attack, jump, duck, use things, make step sounds and move.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Attack capabilityattack_capability

Sets whether the player can use the primary and the secondary attack of their weapons. A zoomed weapon stays zoomed while attacks are off.

  • Off (-1)
  • No change (0)
  • On (1)
  • Toggle (2)
  • Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default No change (0)
Jump capabilityjump_capability

Sets whether the player can jump.

  • Off (-1)
  • No change (0)
  • On (1)
  • Toggle (2)
  • Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default No change (0)
Duck capabilityduck_capability

Sets whether the player can duck.

  • Off (-1)
  • No change (0)
  • On (1)
  • Toggle (2)
  • Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default No change (0)
Use capabilityuse_capability

Sets whether the player can use buttons, mounted guns and trains with the use key.

  • Off (-1)
  • No change (0)
  • On (1)
  • Toggle (2)
  • Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default No change (0)
Step soundsstepsound_capability

Sets whether the player makes footstep sounds.

  • Off (-1)
  • No change (0)
  • On (1)
  • Toggle (2)
  • Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default No change (0)
Movement capabilitymovement_capability

Sets whether the player can walk, strafe and swim. Jumping and pushes still work.

  • Off (-1)
  • No change (0)
  • On (1)
  • Toggle (2)
  • Copy use input (3) - On turns it on, Off turns it off and any other trigger switches it
Default No change (0)

Notes​

  • It only changes the activator, and only if that is an alive player
  • When a trigger_relay fires it, the relay needs its flag Forward activator so the player stays the activator
  • The change lasts until another player_capabilities changes it back or the player respawns
  • The player's game gets the change at once, so their movement doesn't stutter

See also​

Changes since 1.38​

  • player_capabilities is new