Difference between revisions of "SetOwnership"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Laisren
m ()wiki syntax error))
imported>Laisren
m
Line 4: Line 4:
'''Syntax:'''
'''Syntax:'''
  ''referenced-item.''SetOwnership ''Owner''
  ''referenced-item.''SetOwnership ''Owner''
'''Syntax Detail'''
 
'''Syntax Detail:'''
 
''referenced-item.'' -Required parameter if object has not been previously referenced. The period is required as part of the parameter.
''referenced-item.'' -Required parameter if object has not been previously referenced. The period is required as part of the parameter.
''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]] reference.
:* For ''NPC'', use a [[base NPC]] reference.
* For ''FactionID'', specify a [[Faction name]] or Faction Reference-Identifier number.
:* For ''FactionID'', specify a [[Faction name]] or Faction Reference-Identifier number.
* 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


'''Example:'''  
'''Examples:'''  
  SetOwnership BladesFaction
  SetOwnership BladesFaction
  RewardSwordRef.SetOwnership
  RewardSwordRef.SetOwnership

Revision as of 05:30, 25 March 2008

SetOwnership function

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

Syntax:

referenced-item.SetOwnership Owner

Syntax Detail:

referenced-item. -Required parameter if object has not been previously referenced. The period is required as part of the parameter.

Owner - Specify either an Owner NPC or an Owner FactionID.

  • For NPC, use a base NPC reference.
  • For FactionID, specify a Faction name or Faction Reference-Identifier number.
  • If no Owner is specified, the reference will be set to player ownership


Examples:

SetOwnership BladesFaction
RewardSwordRef.SetOwnership

Notes/Details

  • 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.
  • The console script indentifies the second parameter as "Owner".
  • See also Interior_cells (as a reference on Cell Ownership).