AddDynamic

The capital was an issue, but that did not find the problem. Output wasn’t showing anything either. But this is the error.

Why won’t this code work? The error is “no instance of function template”

My pictures are a little blurry. Here are the important parts.

200257-picture4.png

One big issue I see is with your OnTriggerEnter function.

UprimitiveComponent should be UPrimitiveComponent

If you could post your output that would be most helpful.

The issue still lies within your TriggerEnter definition. The error is saying that the parameters on your function don’t match the parameters of the delegate you are binding it to.

These are the required parameters:
UPrimitiveComponent* OverlappedComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)

It looks like you are missing the initial UPrimitiveComponent parameter.

Exactly!!!
My situation:
before:

void OnHit(AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit );

after:

void OnHit(UPrimitiveComponent* HitComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit );

I have a slightly impression that the parameter of the function that asocciate with HIT event or OVERLAP event or etc, changed after a big version upgrade of UE4, then it added a

UPrimitiveComponent* HitComponent

parameter.

after that, My AddDynamic() function works fine~

hello friends.
i am still having this problem. what would be the solution? the error is exactly the same as that of k8eee above.