Mod:Creation Kit/Owner Struct - InstanceData

F4SE Struct of: Mod:Creation Kit/InstanceData Script

A structure that holds information about an object.

Syntax
Struct Owner Form owner int slotIndex EndStruct

Members

 * owner: Can be an Mod:Creation Kit/Actor, Mod:Creation Kit/Armor, Mod:Creation Kit/Weapon, or Mod:Creation Kit/Object Reference.
 * slotIndex: The Biped Slot the item is in. Only used if Item is an Actor.

Examples
InstanceData:Owner thisInstance = Game.GetPlayer.GetInstanceOwner(41) Debug.Trace(thisInstance.Owner)    ; Player Debug.Trace(thisInstance.slotIndex) ; 41
 * Getting an Owner from the Player

InstanceData:Owner thisInstance = new InstanceData:Owner thisInstance.Owner = self as ObjectReference Debug.Trace(thisInstance.Owner)
 * Getting an Owner using an Object Reference