EnableSneaking - InputEnableLayer

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: InputEnableLayer Script

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

Syntax[edit | edit source]

Function EnableSneaking(abEnable = true) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Enable sneaking
myLayer.EnableSneaking()


; Disable sneaking
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableSneaking(false)

See Also[edit | edit source]