EnableSneaking - InputEnableLayer
Member of: InputEnableLayer Script
Enables or disables the player's ability to sneak on this layer.
SyntaxEdit
Function EnableSneaking(abEnable = true) native
ParametersEdit
- abEnable: If true, enables sneaking. Otherwise disables it.
- Default: True
Return ValueEdit
None.
ExamplesEdit
; Enable sneaking
myLayer.EnableSneaking()
; Disable sneaking
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableSneaking(false)