How to Activate a Blueprint at certain moment?

ok, so i’m working on a small project that involves basic collision. I have a ball blueprint which makes my character bigger, within a box blueprint which will raise the ball in a Z axis motion once the box is overlapped. so far i have this code:

void APickupBlock::ActivatePickup()
{
	UChildActorComponent* Child = GetComponentByClass(UChildActorComponent StaticClass());

	child->ChildActor;
}

How can i make it, so the ball does nothing until the ball is outside the box?

Hey there, you may have a hard time finding an answer here, because blueprint scripting is actually for people who wish to skip coding. Try switching this question to the C++ programming section.