Editor crashes if i use ->ActorHasTag()

If the trace hits something and returns true, that doesn’t necessarily mean that the actor is valid, because not all components have an owner actor (like BSP geometry). So before you do anything with your actor, simply check if HitResult.GetActor() != nullptr.

1 Like