Difference between revisions of "SetOwnership"
Jump to navigation
Jump to search
imported>Maturin |
imported>Shademe |
||
(14 intermediate revisions by 8 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 '' | ''referenced-item.''SetOwnership ''Owner'' | ||
''' | |||
'''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== | |||
*[[GetOwner]] | |||
*[[GetParentCellOwner]] | |||
*[[GetOwningFactionRequiredRank]] | |||
*[[GetParentCellOwningFactionRequiredRank]] | |||
*[[IsOffLimits]] | |||
*[[Interior cells]] (as a reference on Cell Ownership). | |||
*[[SetCellOwnership]] | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: | [[Category:Functions (CS)]] | ||
[[Category: Functions (CS 1.0)]] | |||
[[Category: Inventory Functions]] | |||
[[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]
- GetOwner
- GetParentCellOwner
- GetOwningFactionRequiredRank
- GetParentCellOwningFactionRequiredRank
- IsOffLimits
- Interior cells (as a reference on Cell Ownership).
- SetCellOwnership