Difference between revisions of "EnableActivate - InputEnableLayer"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' InputEnableLayer Script Enables or disables the player's ability to activate items on this layer. == Syntax == ...")
 
imported>Docclox
m (→‎Examples: Fixed careless error, the function in the example should obviously be "EnableActivate" not "EnableActivation".)
 
Line 26: Line 26:
; Disable activation
; Disable activation
InputEnableLayer myLayer = InputEnableLayer.Create()
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableActivation(false)
myLayer.EnableActive(false)
</source>
</source>



Latest revision as of 23:12, 14 July 2020

Member of: InputEnableLayer Script

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

Syntax[edit | edit source]

Function EnableActivate(abEnable = true) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Enable activation
myLayer.EnableActivate()


; Disable activation
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableActive(false)

See Also[edit | edit source]