SetOwnership

From the Oblivion ConstructionSet Wiki
Revision as of 10:30, 25 March 2008 by imported>Scruggs (Clean up redundancy between Syntax Detail and Notes; remove basic info about reference syntax; fix red links)
Jump to navigation Jump to search

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

See also

Interior cells (as a reference on Cell Ownership).