APawn::IsBasedOnActor

Iterates up the movement base chain to see whether or not this Actor is based on the given Actor, defaults to checking attachment