Background for Fallout 4
Member of the InputEnableLayer script
voidfunctionDelete()Native

Description

Wiki Description

Forcibly deletes this input enable layer immediately. Any script variables or properties looking at it will be invalidated, and of course any disables it may have held are cleared.

Documentation Comment

Force-deletes this input layer. Any variable pointing at this layer will become invalid
and it should also clear any disables this layer had (unless code, for some reason, is
keeping it alive).


Caveats

CK Wiki - Notes

  • Layers will automatically delete themselves if all variables and properties pointing at them are cleared.
  • Once deleted, you can't call any more functions on the layer as it will be gone (and an error will print to the log).

Examples

; Deletes the layer, and then clears the variable that held it
myLayer.Delete()
myLayer = None

Auto-Generated Example

myInputEnableLayer__toCallFunctionOn.Delete()

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.