Difference between revisions of "SetOwnership"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Scruggs
(note about base npc vs ref)
imported>Shademe
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
==SetOwnership function==
Sets the ownership of the calling reference to the specified base NPC or Faction.
'''Syntax:'''
'''Syntax:'''
  SetOwnership ''NPC/FactionID (optional)''
  ''referenced-item.''SetOwnership ''Owner''
'''Example:'''  
 
'''Examples:'''  
  SetOwnership BladesFaction
  SetOwnership BladesFaction
  RewardSwordRef.SetOwnership
  RewardSwordRef.SetOwnership


Sets the ownership of the calling reference to the specified base NPC or Faction. If the second parameter is left blank, the reference will be set to player ownership. Note that only a base NPC, not an NPC reference, can have ownership.
==Notes==
* You may specify an Owner NPC or an Owner FactionID.
** For ''NPC'', use a base [[Glossary#N|NPC]], not an NPC [[reference]].
** For ''FactionID'', specify a [[:Category:Factions|Faction]] name
* If no ''Owner'' is specified, the reference will be set to player ownership


==See also==
*[[GetOwner]]
*[[GetParentCellOwner]]
*[[GetOwningFactionRequiredRank]]
*[[GetParentCellOwningFactionRequiredRank]]
*[[IsOffLimits]]
*[[Interior cells]] (as a reference on Cell Ownership).
*[[SetCellOwnership]]


[[Category: Functions]]
[[Category: Functions]]
Line 13: Line 29:
[[Category: Inventory Functions]]
[[Category: Inventory Functions]]
[[Category: Inventory Functions (CS 1.0)]]
[[Category: Inventory Functions (CS 1.0)]]
<!-- Begin Search Terms
set
owner
ownership
End Search Terms -->

Latest revision as of 17:45, 10 December 2009

SetOwnership function[edit | edit source]

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

Syntax:

referenced-item.SetOwnership Owner

Examples:

SetOwnership BladesFaction
RewardSwordRef.SetOwnership

Notes[edit | edit source]

  • You may specify an Owner NPC or an Owner FactionID.
  • If no Owner is specified, the reference will be set to player ownership

See also[edit | edit source]