EnableMenu - InputEnableLayer

From the Fallout4 CreationKit Wiki
Revision as of 08:39, 31 August 2016 by imported>Docclox (→‎Examples: fixed careless errors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: InputEnableLayer Script

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

Syntax[edit | edit source]

Function EnableMenu(abEnable = true) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Enable menu
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableMenu()


; Disable menu
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableMenu(false)

See Also[edit | edit source]