GetMaterialSwap - ObjectReference

Revision as of 01:07, 5 April 2018 by imported>Qazaaq (added details)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

F4SE Member of: ObjectReference Script
Requires F4SE version 0.6.7 or higher.

Gets the internal persistent Material Swap for this reference. Some ObjectReferences placed in the world through the Editor may have this already filled.

SyntaxEdit

MatSwap Function GetMaterialSwap() Native

ParametersEdit

None

Return ValueEdit

The Material Swap for this reference.

ExamplesEdit

MatSwap myMaterialSwap = weaponReference.GetMaterialSwap()
Debug.Trace("Got the material swap "+myMaterialSwap+" from the "+weaponReference+" reference.")

See AlsoEdit