Difference between revisions of "GetScrapItem - Component"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(fixed wiki link)
imported>Qazaaq
(added required f4se version)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''F4SE Member of:''' [[Component Script]]
'''F4SE Member of:''' [[Component Script]]
{{Template:Papyrus:RequiredF4SE|version=0.4.2}}


Returns the scrap item for this component.
Returns the scrap item for this component.
Line 16: Line 17:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
MiscObject goldScrap = Gold.GetScrapItem()
MiscObject goldScrap = c_Gold.GetScrapItem()
Debug.Trace(goldScrap)
Debug.Trace(goldScrap)
</source>
</source>

Latest revision as of 13:03, 21 January 2018

F4SE Member of: Component Script
Requires F4SE version 0.4.2 or higher.

Returns the scrap item for this component.

Syntax[edit | edit source]

MiscObject Function GetScrapItem() Native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The MiscItem scrap item for this component.

Examples[edit | edit source]

MiscObject goldScrap = c_Gold.GetScrapItem()
Debug.Trace(goldScrap)

Notes[edit | edit source]

None

See Also[edit | edit source]