GetLooseMod - ObjectMod

From Creation Kit
Jump to: navigation, 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

MiscObject Function GetLooseMod() Native

Parameters

  • None

Return Value

The MiscItem associated with this loose mod.

Examples

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