Background for Fallout 4
Member of the ObjectReference script
voidfunctionSetMaterialSwap(MatSwapmSwap)Native

[DEV SERVER] Loading description...


Caveats


Parameters

MatSwapmSwap

CK Wiki Description

The Material Swap added to this reference.

  • Adding persistent material swaps will increase save-size by a small amount. Setting this to None will remove persistence and free up save-space.

Examples

weaponReference.SetMaterialSwap(myMaterialSwap)
Debug.Trace("Set the material swap to "+myMaterialSwap+" on the "+weaponReference+" reference.")

Auto-Generated Example

MatSwap myMatSwap__mSwap

myObjectReference__toCallFunctionOn.SetMaterialSwap(myMatSwap__mSwap)

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.