Download

Problem with blueprint event (Prox)


UFUNCTION(BlueprintNativeEvent, Category = Collision)
	void Prox(AActor* OtherActor, UPrimitiveComponent* OtherComp,
	int32 OtherBodyBodyIndex, bool bFromSweep, const FHitResult &
	SweepResult);

That’s how the method is declared in my class.

And the name that i use is:


void ANPC::Prox_Implementation(AActor* OtherActor,
	UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool
	bFromSweep, const FHitResult & SweepResult)
{

Problem is, I get a compiler error:
“‘Prox_Implementation’ : is not a member of…”

I haven’t really figured this out fully myself. Sometimes you need to manually declare the _Implementation yourself, sometimes you don’t have to do that. Might be related to the combination of UFUNCTION specifiers and/or whether it’s a regular function or an interface function.
Just add the code below to your other declarations and the error should be gone.


virtual void Prox_Implementation(AActor* OtherActor,
	UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool
	bFromSweep, const FHitResult & SweepResult);