Difference between revisions of "SetOwnership"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Wrye
imported>Wrye
(Link to new glossary.)
Line 8: Line 8:


''Owner'' - Specify either an Owner NPC or an Owner FactionID.
''Owner'' - Specify either an Owner NPC or an Owner FactionID.
:* For ''NPC'', use a base [[NPC]], not an NPC [[reference]].
:* For ''NPC'', use a base [[Glossary#N|NPC]], not an NPC [[reference]].
:* For ''FactionID'', specify a [[:Category:Factions|Faction]] name
:* For ''FactionID'', specify a [[:Category:Factions|Faction]] name
:* If no ''Owner'' is specified, the reference will be set to player ownership
:* If no ''Owner'' is specified, the reference will be set to player ownership

Revision as of 19:28, 5 June 2008

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