Difference between revisions of "GetMaterialSwap - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added f4se member)
 
imported>Qazaaq
(added details)
 
Line 2: Line 2:
{{Template:Papyrus:RequiredF4SE|version=0.6.7}}
{{Template:Papyrus:RequiredF4SE|version=0.6.7}}


Gets the [[Material Swap]] for this reference.
Gets the internal persistent [[Material Swap]] for this reference.
Some [[ObjectReference Script|ObjectReference]]s placed in the world through the ''Editor'' may have this already filled.


== Syntax ==
== Syntax ==
Line 18: Line 19:
<source lang="papyrus">
<source lang="papyrus">
MatSwap myMaterialSwap = weaponReference.GetMaterialSwap()
MatSwap myMaterialSwap = weaponReference.GetMaterialSwap()
Debug.Trace("Got the material swap "+myMaterialSwap+" from the "+weaponReference+" reference.")
</source>
</source>



Latest revision as of 01:07, 5 April 2018

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.

Syntax[edit | edit source]

MatSwap Function GetMaterialSwap() Native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The Material Swap for this reference.

Examples[edit | edit source]

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

See Also[edit | edit source]