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
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")
endIfAuto-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
