Background for Fallout 4
Member of the ObjectReference script
<UNKNOWN_SCRIPT: MatSwap:RemapData>[]functionApplyMaterialSwap(MatSwapmSwap, boolrenameMaterial=false)Native

[DEV SERVER] Loading description...


Caveats


Parameters

MatSwapmSwap

CK Wiki Description

The Material Swap applied to this reference.

boolrenameMaterial=false

CK Wiki Description

Rename material allows independent control over the Initialization File setting General::bRenamePropertiesOnMaterialSwap.


Examples

Game.GetPlayer().ApplyMaterialSwap(MyMaterialSwap)

Auto-Generated Example

MatSwap myMatSwap__mSwap
bool myBool__renameMaterial

MatSwap:RemapData[] returnedValue = myObjectReference__toCallFunctionOn.ApplyMaterialSwap(myMatSwap__mSwap, myBool__renameMaterial)

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.