SetOwnership
Revision as of 05:28, 25 March 2008 by imported>Laisren ()wiki syntax error))
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
Example:
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).