Navigation
API > API/Plugins > API/Plugins/GameplayBehaviorsModule > API/Plugins/GameplayBehaviorsModule/UGameplayBehavior
- UGameplayBehavior::Trigger()
- UGameplayBehavior_BehaviorTree::Trigger()
- UGameplayBehavior_AnimationBased::Trigger()
References
| Module | GameplayBehaviorsModule |
| Header | /Engine/Plugins/Experimental/GameplayBehaviors/Source/GameplayBehaviorsModule/Public/GameplayBehavior.h |
| Include | #include "GameplayBehavior.h" |
| Source | /Engine/Plugins/Experimental/GameplayBehaviors/Source/GameplayBehaviorsModule/Private/GameplayBehavior.cpp |
virtual bool Trigger
&40;
AActor & Avatar,
const UGameplayBehaviorConfig &42; Config,
AActor &42; SmartObjectOwner
&41;
Remarks
Default implementation will trigger the appropriate Blueprint event based on their presence in the script and in the following priority:
OnTriggeredCharacter if used and Avatar is a Character
OnTriggeredPawn if used and Avatar is a Pawn
OnTriggered if used
Subclasses can override this method to control the whole flow True if behavior was triggered and caller should register to OnBehaviorFinished to be notified on completion
Parameters
| Name | Description |
|---|---|
| Avatar | The actor on which the behavior should be execute |
| Config | Configuration parameters of the behavior |
| SmartObjectOwner | The actor associated to the smart object |