STEAM GROUP
Skyrim Creation Kit (Public) CKPublic
STEAM GROUP
Skyrim Creation Kit (Public) CKPublic
71
IN-GAME
1,048
ONLINE
Founded
February 7, 2012
using Setownership in a Script
I want to have the player own a house so his family can move in. How do I use the following in a script? (Need Examples of a Working Script):

Sets the ownership of the reference to the specified NPC or Faction. If the second parameter is left blank, the reference will be set to player ownership.

Syntax:

SetOwnership (NPC/Faction)

Example:

SetOwnership BladesFaction
RewardSwordRef.SetOwnership

; not using the console feature, I just want a script that uses:

SetOwnership
MyHouseRef.SetOwnership

; ScriptName M7HomeOwnership extends ObjectReference
Event OnActivate (ObjectReference akActionRef)
debug.Messagebox ("You now own a home.")
MyHouseRef.SetOwnership
endEvent

; will this work or not? M7. Will this work for one cell or do I need to use it for all rooms in the house?