EnableSprinting - InputEnableLayer

From the Fallout4 CreationKit Wiki
Revision as of 08:12, 13 April 2015 by imported>RobinHood70 (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: InputEnableLayer Script

Enables or disables the player's ability to sprint on this layer.

Syntax[edit | edit source]

Function EnableSprinting(abEnable = true) native

Parameters[edit | edit source]

  • abEnable: If true, enables sprinting. Otherwise disables it.
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Enable sprinting
myLayer.EnableSprinting()


; Disable sprinting
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableSprinting(false)

See Also[edit | edit source]