HasFamilyRelationship - Actor

From the Fallout4 CreationKit Wiki
Revision as of 16:27, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Does this actor have a family relationship with the specified actor? Or with anyone if no actor is passed.

Syntax[edit | edit source]

bool Function HasFamilyRelationship(Actor akOther = None) native

Parameters[edit | edit source]

  • akOther: The actor to check against. If None, then see if this actor has a family relationship with anyone.
    • Default: None

Return Value[edit | edit source]

Whether this actor has a family relationship.

Examples[edit | edit source]

; Does JoeBob have any family?
if (JoeBob.HasFamilyRelationship())
  Debug.Trace("JoeBob has a family")
endIf


; Does JoeBob have a family relationship with Sally?
if (JoeBob.HasFamilyRelationship(Sally))
  Debug.Trace("JoeBob and Sally are family")
endIf

See Also[edit | edit source]