Background for Fallout 4
Member of the InputEnableLayer script
InputEnableLayerfunctionCreate()NativeGlobal

Description

Wiki Description

Creates a new input enable layer for a script to use to enable/disable player controls. Note that these are a limited resource, so you should not hold onto them longer then you need to have the player's controls disabled.

Documentation Comment

Creates a new input enable layer and returns it. These are limited, so make sure
to dispose of it when you're done (by setting variables to None)


Caveats

CK Wiki - Notes

  • The layer is tagged with the form, script, function, and line number of this call for debugging purposes.
  • When you are done with the layer and no longer need to disable the player's controls, dispose of it by either setting all variables and properties holding it to None, or by calling InputEnableLayer.Delete() on it.
  • To see all active layers in the game, use the DumpInputEnableLayers console command.

Examples

; Create a new layer
InputEnableLayer myLayer = InputEnableLayer.Create()

Auto-Generated Example

InputEnableLayer returnedValue = InputEnableLayer.Create()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.