Difference between revisions of "ApplyMaterialSwap - ObjectReference"
Jump to navigation
Jump to search
imported>Qazaaq (added f4se member) |
(No difference)
|
Revision as of 14:40, 11 February 2018
This article has been flagged as incomplete. |
Please help improve the wiki by learning how to contribute. |
F4SE Member of: ObjectReference Script
Requires F4SE version 0.6.5 or higher.
Applies a Material Swap to this reference, optionally renaming the material.
Syntax
MatSwap:RemapData[] Function ApplyMaterialSwap(MatSwap mSwap, bool renameMaterial = false) Native
Parameters
- mSwap: The Material Swap applied to this reference.
- renameMaterial: Rename material allows independent control over the Initialization File setting
General::bRenamePropertiesOnMaterialSwap
.- Default: false
Return Value
- Returns the source/target RemapData pairs that succeeded in swapping.
Examples
Game.GetPlayer().ApplyMaterialSwap(MyMaterialSwap)