Begin/End Overlap same time.
I have a USphereComponent for an enemy character. When the player walks into the sphere, I want it to trigger the enemy to start attacking, etc.
The problem I'm having is when my character walks into the sphere, the OnComponentBeginOverlap is called immediately followed by OnComponentEndOverlap
I setup the collision to only be on pawn, and put special code it to see if the overlap is with the character. It still calls both.
My code looks like this
In enemy character constructor
My trigger functions.
When I step into the sphere it calls StartTracking() then StopTracking() in the same frame.
If I then back up, it calls StopTracking() a second time.
StartTracking() and StopTracking() currently do nothing, so it's not like the enemy starts moving and moves out of range or something like that.
asked Feb 22 '15 at 08:38 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here