GetLooseMod - ObjectMod

From the Fallout4 CreationKit Wiki
Revision as of 11:15, 24 November 2018 by imported>Qazaaq (Removed incomplete flag and added some traces to the example.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

F4SE Member of: ObjectMod Script
Requires F4SE version 0.3.1 or higher.

Gets the Loose Mod item for this Object Mod. A loose mod is a MiscItem that appears in the player's inventory when the Object Mod is not attached.

Syntax[edit | edit source]

MiscObject Function GetLooseMod() Native

Parameters[edit | edit source]

  • None

Return Value[edit | edit source]

The MiscItem associated with this loose mod.

Examples[edit | edit source]

MiscObject looseMod = MyObjectMod.GetLooseMod()
If (looseMod)
    Debug.Trace("The Object Mod has a loose mod.")
Else
    Debug.Trace("The Object Mod does not have a loose mod.")
EndIf

See Also[edit | edit source]