Difference between revisions of "IsOwner"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>Ez0n3
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Syntax:'''
{{Function
  IsOwner ''NPC/FactionID (optional)''
  |CSWikiPage = IsOwner
'''Example:'''
|origin = GECK1
  SpecialObject.IsOwner BrotherhoodSteelFaction
|summary = Returns 1 if calling object is owned by the specified faction/NPC. This only checks actual ownership on the reference not the inherited ownership from the cell. If called without parameter, IsOwner returns 1 if the calling object is owned by the player. Note that IsOwner returns 0 if the owner is set to NONE, so it cannot be used to detect public ownership.
|name = IsOwner
|returnVal = 0, 1
|returnType = int
|referenceType = [ActorRefID]
|arguments =
  {{FunctionArgument
  |Name = <nowiki>ActorRefID|FactionID</nowiki>
  |Type = ref (optional)
  |Optional = y
  }}
  |example = SpecialObject.IsOwner BrotherhoodSteelFaction
  SpecialObject.IsOwner SaraLyonsRef
  SpecialObject.IsOwner SaraLyonsRef
  SpecialObject.IsOwner
  SpecialObject.IsOwner
}}


 
[[Category:Functions]]
Returns 1 if calling object is owned by the specified faction/NPC. This only checks actual ownership on the reference not the inherited ownership from the cell. If called without parameter, returns 1 if the calling object is owned by the player (i.e. has no ownership).
[[Category:Functions (GECK 1.1)]]
 
[[Category:Object Functions]]
 
[[Category:Object Functions (GECK 1.1)]]
[[Category: Functions]]
[[Category:Condition Functions]]
[[Category: Functions (GECK 1.0)]]
[[Category:Condition Functions (GECK 1.1)]]
[[Category: Object Functions]]
[[Category: Object Functions (GECK 1.0)]]
[[Category: Condition Functions]]
[[Category: Condition Functions (GECK 1.0)]]

Latest revision as of 04:39, 15 January 2011

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

Link to TES4 Construction Set Wiki: IsOwner.

A function included in the GECK version 1.1.0.36.

Description

Returns 1 if calling object is owned by the specified faction/NPC. This only checks actual ownership on the reference not the inherited ownership from the cell. If called without parameter, IsOwner returns 1 if the calling object is owned by the player. Note that IsOwner returns 0 if the owner is set to NONE, so it cannot be used to detect public ownership.

Syntax

[help]
(0, 1:int) [ActorRefID].IsOwner ActorRefID|FactionID:ref (optional)

Example

SpecialObject.IsOwner BrotherhoodSteelFaction
SpecialObject.IsOwner SaraLyonsRef
SpecialObject.IsOwner