EnableFighting - InputEnableLayer

From Creation Kit
Jump to: navigation, search

Member of: InputEnableLayer Script

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

Syntax

Function EnableFighting(abEnable = true) native

Parameters

  • abEnable: If true, enables the player's fighting controls. Otherwise disables it.
    • Default: True

Return Value

None.

Examples

; Enable fighting
myLayer.EnableFighting()


; Disable fighting
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableFighting(false)

See Also