- Found in:
- PO3's PE
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
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
