SetOwnershipTemp
From GECK
A function added by the ShowOff NVSE Plugin version 1.40.
Contents
Description
An alternate version of SetOwnership and SetCellOwnership. Unlike them, this is session persistent as opposed to savebaked. Sets the ownership of the calling reference or Cell to the specified NPC or Faction BaseForm.
If SetOwnership/SetCellOwnership were previously called on a form, those changes are savebaked, so SetOwnershipTemp's changes won't be applied when a save is loaded where those changes have been baked.
Syntax
(success:bool) reference.SetOwnershipTemp newOwner:form{Default:Player} Cell:BaseForm{Default:0}
Example
TerminalRef.SetOwnershipTemp Player
Will set the owner of TerminalRef to the player's BaseForm. If Player was omitted from the arguments here, the behavior would not change, since newOwner defaults to the player reference (whose baseform is made the owner).
SetOwnershipTemp Player ULCasino