TapControl

< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Taps the key or mouse button assigned to a control, which is specified by it's int code.

Syntax

TapControl controlCode:int 

Or:

tc controlCode:int

Example

Suppose you wanted to force third person if the player is in first:

if IsPC1stPerson
    TapControl 13 ; POV key
endif

Control Codes

  • 0:Forward
  • 1:Backward
  • 2:Left
  • 3:Right
  • 4:Attack
  • 5:Activate
  • 6:Block
  • 7:Ready Item
  • 8:Crouch
  • 9:Run
  • 10:Always Run
  • 11:Auto-Move
  • 12:Jump
  • 13:TogglePOV
  • 14:MenuMode
  • 15:Rest
  • 16:VATS
  • 17:Hotkey 1
  • 18:Hotkey 2 (Ammo swap key)
  • 19:Hotkey 3
  • 20:Hotkey 4
  • 21:Hotkey 5
  • 22:Hotkey 6
  • 23:Hotkey 7
  • 24:Hotkey 8
  • 25:Quicksave
  • 26:Quickload
  • 27:Grab

See Also