Difference between revisions of "TapControl"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
(Automated import of articles)
 
imported>Odessa
(added example)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''TapControl'''
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = Taps the key or mouse button assigned to control
  |summary = Taps the key or mouse button assigned to a control, which is specified by it's int code.
  |name = TapControl
  |name = TapControl
  |alias = tc
  |alias = tc
Line 12: Line 11:
   }}
   }}
}}
}}
==Example==
Suppose you wanted to force third person if the player is in first:
<pre>
if IsPC1stPerson
    TapControl 13 ; POV key
endif
</pre>
==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==
*[[GetControl]]
*[[TapKey]]
*[[HoldKey]]
*[[Con_CloseAllMenus]]
[[Category:Functions_(FOSE)]]
[[Category:Functions_(FOSE)]]

Latest revision as of 09:18, 14 January 2015

< [[::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

[help]
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