Build Failing

Here is the source of the .h and . cpp files respectfully that is causing the build to fail. I’m only posting the lines that causes the fail.

.h
UFUNCTION(BlueprintNativeEvent, Category = collision)
void Prox( AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult & SweepResult);

.cpp
ProxSphere->OnComponentBeginOverlap.AddDynamic(this, &ABasePickUpItem::Prox);

I am running this on latest OS X version and Xcode

Hello, BIrvin

Sorry to hear about the issue.
To fix it, please add the following declaration to your .h file:

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

Then implement the function in your .cpp file.
Please note that for Blueprint Native Events, you should add the _Implementation function, which provides the default behavior (in case there is no Blueprint implementation available).

Hope this helped!

Have a great day!

There is still one problem. When I uncomment “UFUNCTION(BlueprintNativeEvent, Category = collision)” it gives a Shell Script Invoc Error

Also this line still gives an error
ProxSphere->OnComponentBeginOverlap.AddDynamic(this, &ABasePickUpItem::Prox_Implementation);

Please note that you need to use UFUNCTION() only once in this case, so the whole declaration should look like this:

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

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

Also, please change

ProxSphere->OnComponentBeginOverlap.AddDynamic(this, &ABasePickUpItem::Prox_Implementation);

to

ProxSphere->OnComponentBeginOverlap.AddDynamic(this, &ABasePickUpItem::Prox);

/Documents/Unreal Projects/Solixea/Source/Solixea/BasePickUpItem.h:36:18: Class member cannot be redeclared
Its been a while since I posted code in a forum what is the command to make it neat in a box or should I just paste all of it here?