Difference between revisions of "GetOwner"

Jump to navigation Jump to search
77 bytes added ,  12:40, 13 December 2010
m
Added a new top note
imported>Haama
(→‎See Also: Added IsOffLimits)
imported>Bruneauinfo
m (Added a new top note)
 
Line 4: Line 4:
  (owner:ref) reference.GetOwner
  (owner:ref) reference.GetOwner


Returns the NPC or faction which owns the calling reference.
Returns the NPC or faction which owns the calling reference.  


==Notes==
==Notes==
*GetOwner does not appear to work on activators such as switches and doors.
*The ownership of an item can also be determined by the cell owner. If the cell has a set [[Interior_cells#Interior Data:|Owner NPC]], all items in the cell are owned by the NPC. In that case, this function may return 0, but [[GetParentCellOwner]] will return the true owner. In code
*The ownership of an item can also be determined by the cell owner. If the cell has a set [[Interior_cells#Interior Data:|Owner NPC]], all items in the cell are owned by the NPC. In that case, this function may return 0, but [[GetParentCellOwner]] will return the true owner. In code
<pre>ref pOwner
<pre>ref pOwner
Anonymous user

Navigation menu