Condition_IsFamilyRelationship
Description
Checks if the Self character has a specific family relationship with the Target character. When S1 is empty, checks if any family relationship exists using RelationshipData. When S1 is specified, checks if the exact family relationship type matches using the FamilyTree.
Note
S1 empty uses the bIsFamilyRelationship flag in RelationshipComponent; S1 specified uses FamilyTreeManager to resolve the exact relationship type (Parent, Child, Sibling, etc.).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Self is the subject character; Target is the character whose relationship is evaluated |
| CompareType | Supported compare types: Equal, NotEqual |
| S1 | Family relationship type (EB1FamilyRelationshipType); if empty, checks for any relation |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| If Target is any family member | Self | IsFamilyRelationship | Equal |
| If Target is not a family member | Self | IsFamilyRelationship | NotEqual |
| If Target is Self's parent | Self | IsFamilyRelationship | Equal |
| If Target is Self's child | Self | IsFamilyRelationship | Equal |
Back to Command FinderSearch and filter all 491 Script Condition documents