SetOwnership

From The Elder Scrolls Construction Set Wiki

[edit] SetOwnership function

Sets the ownership of the calling reference to the specified base NPC or Faction.

Syntax:

referenced-item.SetOwnership Owner

Syntax Detail:

Owner - Specify either an Owner NPC or an Owner FactionID.

  • For NPC, use a base NPC, not an NPC reference.
  • For FactionID, specify a Faction name
  • If no Owner is specified, the reference will be set to player ownership

Examples:

SetOwnership BladesFaction
RewardSwordRef.SetOwnership

[edit] Notes

  • SetOwnership only accepts explicit references for the referenced item/object. If you use a reference variable it will act as a return.

[edit] See also

Personal tools