Is it possible in code to check if my character is colliding with an object that has been tagged inside the editor?
I have figured out how to do this with overlapping using Super::ReceiveActorBeginOverlap, but am unsure how to do this on collision (so that I don’t need a volume around the object to do overlap checking).
For instance
if (Object.collided.tag = “Tile”)
{
do something;
}
Is it possible to get this information through code? I’ve been looking through the functions and am having a bit of trouble with this.
#.cpp
void AVictoryWall::ReceiveHit(
class UPrimitiveComponent* MyComp,
class AActor* Other,
class UPrimitiveComponent* OtherComp,
bool bSelfMoved,
FVector HitLocation,
FVector HitNormal,
FVector NormalImpulse,
const FHitResult& Hit
)
{
//The best Hit event I’ve found in UE4
//Tells you everything! Works with Simulating Physics and PHat assets!
}