Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ACustomTriggerBox::BeginPlay()
- {
- Super::BeginPlay();
- //Register the enter and exit overlaps to fire
- OnActorBeginOverlap.AddDynamic(this, &ACustomTriggerBox::OnTriggerEnter);
- OnActorEndOverlap.AddDynamic(this, &ACustomTriggerBox::OnTriggerExit);
- }
- /*PRE 4.12 version*/
- void ACustomTriggerBox::OnTriggerEnter(AActor* Other)
- {
- GLog->Log("Begin overlap has fired");
- }
- /*PRE 4.12 version*/
- void ACustomTriggerBox::OnTriggerExit(AActor* Other)
- {
- GLog->Log("End overlap has fired");
- }
- /*4.12 version*/
- void ACustomTriggerBox::OnTriggerEnter(AActor* OverlapedActor, AActor* OtherActor)
- {
- GLog->Log("Begin overlap has fired");
- }
- /*4.12 version*/
- void ACustomTriggerBox::OnTriggerExit(AActor* OverlapedActor, AActor* OtherActor)
- {
- GLog->Log("End overlap has fired");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement