Difference between revisions of "SetOwnership"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Scruggs
(Clean up redundancy between Syntax Detail and Notes; remove basic info about reference syntax; fix red links)
imported>Shademe
 
(6 intermediate revisions by 5 users not shown)
Line 4: Line 4:
'''Syntax:'''
'''Syntax:'''
  ''referenced-item.''SetOwnership ''Owner''
  ''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 [[:Category:Factions|Faction]] name
:* If no ''Owner'' is specified, the reference will be set to player ownership


'''Examples:'''  
'''Examples:'''  
  SetOwnership BladesFaction
  SetOwnership BladesFaction
  RewardSwordRef.SetOwnership
  RewardSwordRef.SetOwnership
==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==
==See also==
[[Interior cells]] (as a reference on Cell Ownership).
*[[GetOwner]]
*[[GetParentCellOwner]]
*[[GetOwningFactionRequiredRank]]
*[[GetParentCellOwningFactionRequiredRank]]
*[[IsOffLimits]]
*[[Interior cells]] (as a reference on Cell Ownership).
*[[SetCellOwnership]]


[[Category: Functions]]
[[Category: Functions]]
Line 24: 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]