Announcement

Collapse
No announcement yet.

Focus a Enemy in Combat with Mouse

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Focus a Enemy in Combat with Mouse

    Hi guys,

    currently i tried to create a focus mouse system for the combat system. The Basic i like this:
    https://www.youtube.com/watch?v=CNlPl6Cfe7c

    My idea is: If Pawn <= "Max.Distance" & Mouse over the Enemy = set "AroundEnemy" true.

    The "AroundEnemy" constraint the A/D Movement(GetRightVector) to only Around the Enemy.

    I started with the default 3rd Person Template, the "Max.Distance" is a simple VectorLength from pawn - Enemy.

    My Questions are:
    1. How can i constraint the Pawn A/D Movement?
    2. Need i a Trace from Mouse Location to WorldSpace ever Tick? Or maybe give other solution?

    Here my concept:

    Click image for larger version

Name:	BP_LookAt.jpg
Views:	1
Size:	74.8 KB
ID:	1137609


    greetings,
    Ulrich
    reference
    http://dirty-windows.de

    my blog
    http://ulrichthuemmler.blogspot.com/
Working...
X