Announcement

Collapse
No announcement yet.

Launch character/Set Velocity not working correctly with AI Move to

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

    Launch character/Set Velocity not working correctly with AI Move to

    Hey all,

    I'm working on a dungeon crawler type game and have set up a system for knocking enemies backwards when you hit them with your sword by using launch character. This works great for when the player is hit or a stationary enemy but if the enemy is using the "move to" node (e.g. for random wandering, chasing the player) it messes with the launch command/set velocity. I found this post in the unreal answers from a few months ago which I believe shows the same issue I'm having...

    https://answers.unrealengine.com/que...or-overri.html

    Can anyone think of a possible work around? Right now I have it teleport the enemy instead and set it's velocity to 0. This is ok to test gameplay but comes with it's own issues (can accidentally teleport them through walls + doesn't look quite right)

    any help would be much appreciated!
    Last edited by mrcrocker; 11-14-2014, 12:24 PM. Reason: spelling

    #2
    lil' Bump,

    Perhaps it's possible to make a custom "move to" method in blueprint? I wouldn't know how to begin having it use the navmesh though

    Comment


      #3
      I have a work around - change movement mode to falling right after AI launch. (CharacterMovement:SetMovementMode)
      Game frameworks on Unreal Marketplace:

      Third Person Shooter Kit - February 2017 Community Pick! - https://www.unrealengine.com/marketp...on-shooter-kit

      Side Scroller Shooter Kit - https://www.unrealengine.com/marketp...er-shooter-kit

      Support Discord channel: https://discord.gg/NdUHQnC

      Comment


        #4
        Hey that Works thanks. You don't even need timers, Though you cannot combine this with root motion, root motion overrides the Force and so the velovity i belive.
        Last edited by Neongho; 03-31-2017, 04:00 AM.
        Some cool unreal projects you may like!


        Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

        Download the demo Download the demo
        external link Dropbox DropBox

        Become a c++ Professional now C++ Networking Tutorial

        Comment


          #5
          I used stop movement immediately and it works pretty good.

          Comment

          Working...
          X