SetOwner/GetOwner script function