Background for Skyrim SE
Member of the PO3_SKSEFunctions script
voidfunctionSetMaterialType(ObjectReferenceakRef, stringasNewMaterial, stringasOldMaterial="", stringasNodeName="")NativeGlobal

Description

GitHub Wiki Description (PO3's PE)

  • Sets havok material type. Use oldMaterial string to select what material you want to change from to (eg. from stone to wood), and nodeName to apply it to the specific node.
  • If both are empty, every collision material will be set.

Caveats


Parameters

ObjectReferenceakRef

stringasNewMaterial

stringasOldMaterial=""

stringasNodeName=""


Examples

Auto-Generated Example

ObjectReference myObjectReference__akRef
string myString__asNewMaterial
string myString__asOldMaterial
string myString__asNodeName

PO3_SKSEFunctions.SetMaterialType(myObjectReference__akRef, myString__asNewMaterial, myString__asOldMaterial, myString__asNodeName)

Additional References

View this function on the GitHub Wiki for powerofthree's Papyrus Extender

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.