1,482
edits
imported>Jlundin No edit summary |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Function SetActorOwner(ActorBase akActorBase) native | Function SetActorOwner(ActorBase akActorBase) native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 17: | Line 17: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Clear ownership on the sword, which allows the player to take it without stealing it | ; Clear ownership on the sword, which allows the player to take it without stealing it | ||
SwordProperty.SetActorOwner(NONE) | SwordProperty.SetActorOwner(NONE) | ||
</ | </syntaxhighlight> | ||
<br> | <br> | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Set the player as the owner of the sword (other actors will "steal" it) | ; Set the player as the owner of the sword (other actors will "steal" it) | ||
SwordProperty.SetActorOwner(Game.GetPlayer().GetActorBase()) | SwordProperty.SetActorOwner(Game.GetPlayer().GetActorBase()) | ||
</ | </syntaxhighlight> | ||
<br> | <br> | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Make Bob the owner of the sword | ; Make Bob the owner of the sword | ||
SwordProperty.SetActorOwner(Bob.GetActorBase()) | SwordProperty.SetActorOwner(Bob.GetActorBase()) | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] | ||
*[[GetActorOwner - ObjectReference]] | *[[GetActorOwner - ObjectReference]] | ||