Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //For interacting with the mouse
- void URInteractComponent::InteractPressed()
- {
- TraceForward(GetOwner()->GetActorLocation(),Camera->GetForwardVector());
- if (FocusedActor && bShouldInteract)
- {
- IInteractInterface* Interface = Cast<IInteractInterface>(FocusedActor);
- if (Interface)
- {
- Interface->Execute_OnInteract(FocusedActor, GetOwner());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement