Background for Fallout 4
Member of the Actor script
boolfunctionHasAssociation(AssociationTypeakAssociation, ActorakOther=NONE)Native

Description

Wiki Description

Does this actor have the specified association with the specified actor? Or with anyone if no actor is passed.

Documentation Comment

Checks to see if this actor has the specified association with the other actor - or anyone (if no actor is passed)


Caveats


Parameters

AssociationTypeakAssociation

CK Wiki Description

The AssociationType to check for.

ActorakOther=NONE

CK Wiki Description

The actor to check against. If None, then see if this actor has the specified association with anyone.

  • Default:None

Examples

; Does JoeBob have a Spouse relationship?
if (JoeBob.HasAssociation(SpouseProperty))
  Debug.Trace("JoeBob has a spouse")
endIf
; Does JoeBob have a Spouse relationship with Sally?
if (JoeBob.HasAssociation(SpouseProperty, Sally))
  Debug.Trace("JoeBob and Sally are spouses")
endIf

Auto-Generated Example

AssociationType myAssociationType__akAssociation
Actor myActor__akOther

bool returnedValue = myActor__toCallFunctionOn.HasAssociation(myAssociationType__akAssociation, myActor__akOther)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.