MoveTowards GameObject

GearedGeek

Active member
I'm trying to get the player's character to move towards a enemy in the scene using Playmaker. I'm using the Array Maker and Sphere Cast to find the game objects and store them into the global variable. I'm having issue with getting the character to move. I'm not sure how to do this.
 

Attachments

  • 1.PNG
    1.PNG
    86.2 KB · Views: 7
  • 2.PNG
    2.PNG
    74.5 KB · Views: 7
The Move Towards ability is meant to be used with other abilities instead of called by its own. I like this idea though so I have written it down. For now in order to get the character to move you'll need to create an ability that overrides the UpdatePosition method or use the NavMeshAgentMovement ability.
 
Start Movement it used by other abilities to get them into position before starting, such as the interact ability moving into the correct position so the door can be opened.
 
Top