Download

Simple Third Person Interaction

Hello Guys. I just want to share my Simple Third Person Interaction with you.

As the name suggests it provides Interaction for Third Person Games and also is based upon the TP-Template.
Hopefully I made it easy to understand.

70f41ffe70769c2910241d713426e8101368787c.jpeg

Basically the Controller does a trace from the Pawn towards infront of it.
If it founds something interactable, it has two options:

  • Either The Pawn moves automatically towards the interactive Object if it is not reachable
  • Or the Pawn is already in a “tolerance zone” and can interact with it directly

I make use of a so called “Ideal Location”, which describes where the Pawn has to be to interact with the Object.
For example for a button, you need to stand infront of it and also face towards it.

I provde some options, too:
BP2.JPG

There’s a Timer that defines how long the pawn may move/try to move towards the interactive object.
If the timer elapsed, the pawn may either cancel completely or magically sweeps(through obstacles) to the object.

The Tolerance for Location and Rotation is used to make it easier to interact, since it is impossible to align the player correctly.
For example you may face a button with a 22.5° difference in yaw, but you can still use it.

Once the Pawn is in ideal position, the Interactive Object AND the Pawn play an Animation.
The Animation is determined by the Interactive Object (and can be unique for pawns).

You should test it for yourself:

Link

Unreal Engine Version: 4.14.3

Pls give feedback :slight_smile:

(****** animations are intended to be ******)

Thanks Thanks Thanks!!
Very long wanted)))

Hey dude this is amazing. Thanks for sharing.

amazing !
thanks a lot !

good stuff

Please help/
111.jpg
can’t embed, as you have in the project:(
Animation no, but the action takes place.
And after action, turned off the controller

p.s. sorry , i bad to the speek English

Hey there. I provided an Interface called “InteractAnimationInterface”.
Let your Pawn/Character implement this Interface.
This Interface provides an Event “PlayAnimation” with the same signature like your CustomEvent and is used to play the InteractAnimation.

Sidenote: Only Characters have the ability to play Montages directly. A Pawn different than Character needs a different Method for playing Montages. This is what the Interface is for.

Interf.JPG

Interf2.JPG

Thanks!
Work)

Again , I’m sorry
Can’t find where is defined the closeness to the button?
Tolerance?

The Tolerance is set in the Controller, and is separated in LocationTolerance and RotationTolerance.

The button defines the Location in “getIdealLocation” where the character has to be to use the button. (Tolerance from the Controller will be applied when you try to use it)

Thanks!
It’s work

Very…Very nice!

Hello again)
Any idea what could be the problem(Fixed).
Hero clicks a button when you jump?
Approaching her, nothing happens.Only if you jump.

p.s.Fixed
Did not work due to the small size of the character

Hi,

It looks like the download link has broken, is there any chance you could reupload this?

All the best,

J