Skip to main content

Condition_EmotionRestrict

Description

Determines whether the character is in an emotion-restricted state. Compares the character’s current emotion value against the restriction threshold defined in the EmotionDataAsset using the given CompareType. Used to block or allow specific reactions when the character is in an extreme emotional state (e.g., prevent positive reactions when emotion value >= RestrictEmotionValue).

Note

Always returns false when the current EmotionType is Sleep. The restriction threshold is defined globally in EmotionDataAsset::RestrictEmotionValue.

Parameters

ParameterDescription
BaseObjectThe character whose emotion restriction state will be checked
CompareTypeComparison operator applied to (emotion value [op] RestrictEmotionValue)

Examples

DescriptionBaseObjectCommandCompareType
Check if Self is in a restricted emotion stateSelfEmotionRestrictEqual
Check if Self is NOT in a restricted emotion stateSelfEmotionRestrictNotEqual