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
| Parameter | Description |
|---|---|
| BaseObject | The character whose emotion restriction state will be checked |
| CompareType | Comparison operator applied to (emotion value [op] RestrictEmotionValue) |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if Self is in a restricted emotion state | Self | EmotionRestrict | Equal |
| Check if Self is NOT in a restricted emotion state | Self | EmotionRestrict | NotEqual |