EnableSneaking - InputEnableLayer

From Creation Kit
Jump to: navigation, search

Member of: InputEnableLayer Script

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

Syntax

Function EnableSneaking(abEnable = true) native

Parameters

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

Return Value

None.

Examples

; Enable sneaking
myLayer.EnableSneaking()


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

See Also