EnableSprinting - InputEnableLayer

Member of: InputEnableLayer Script

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

SyntaxEdit

Function EnableSprinting(abEnable = true) native

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

; Enable sprinting
myLayer.EnableSprinting()


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

See AlsoEdit