GetOwner()->GetActorLocation()?

Couldn’t we use the following instead of the dubious Getter that Ben seemed so distrustful of:

PlayerViewPointLocation = GetOwner()->GetActorLocation();
PlayerViewPointRotation = GetOwner()->GetActorRotation();
1 Like

Yeah, totally agree. Why go out to the world to get the player? Surely because the Grabber is a component applied to a Pawn (Player/Actor), can’t we just get the Actor to which we are applied? Imagine a multiplayer world where there are many actors, we don’t just want to the first player, we want the specific player that we are attached to?

Privacy & Terms