SetOwnership

< [[::Category:Functions|Category:Functions]]

A function included in the GECK version 1.1.0.36.

Description

Sets the ownership of the calling reference to the specified NPC or Faction. If the parameter is omitted, the reference will be set to be owned by the player.

Syntax

RefID.SetOwnership Owner:FormID

Example

RewardGunRef.SetOwnership

Sets the ownership of RewardGunRef to the player (so that they can take it without stealing).