Description
Wiki Description
Sets a specific Actor (that is to say, an Actor reference, not an ActorBase) as the owner of this object.
Documentation Comment
Sets this object's owner to the specified actor ref - None means to remove ownership
Caveats
Parameters
ActorakActor
CK Wiki Description
The Actor to set as this object's owner. If None, will clear ownership.
boolabNoCrime=false
CK Wiki Description
If true, taking this item is not considered a crime despite ownership.
- Default:False
Examples
; Clear ownership on the sword, which allows the player to take it without stealing it
SwordProperty.SetActorRefOwner(NONE); Set the Actor in NewOwnerProperty as the owner of the sword (other actors will "steal" it)
SwordProperty.SetActorRefOwner(NewOwnerProperty); Set the Actor in NewOwnerProperty as the owner of the sword, but it's not a crime if anyone else takes it.
SwordProperty.SetActorRefOwner(NewOwnerProperty, true)Auto-Generated Example
Actor myActor__akActor
bool myBool__abNoCrime
myObjectReference__toCallFunctionOn.SetActorRefOwner(myActor__akActor, myBool__abNoCrime)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
