Setting up Unit AI Pathfinding

By
-
Login to Follow
-
Industry
  • Games
  • Design Visualization
Subject
  • Animation
  • Foundation
  • General
  • Building Levels
  • Creating Interactions
  • Environment
  • Simulation and Effects
Products
  • Stingray
Skill Level
  • Intermediate
Duration
20 min

What to Expect

In the first part of this series, we generated a navmesh. In this tutorial we will make use of the navmesh to compute our navigation paths and send our units along them.


Tutorial Steps

  1. In the Unit Editor, Add Optional Script Data to the Tank (GwNavExcluded = False)

  2. Add Required Flow to Generate the Tanks NavBot upon Spawn, also add goal unit for later use.


  3. Add Required Script to Allow for Tank Movement in the Tank’s Unit Flow


  4. In Level Flow, Initialize the World and Bot Configuration

  5. In Level Flow, Create Unit and Position Variables for the first flag.


  6. Repeat for Remaining Flags and connect to Bot initialization.


  7. Create flow for a Simple Movement Test from 2 of the above goal vector variables.


  8. Test Results by playing game with “test_level” and using right click to spawn tank(s). They should move from one point to another. Feel free to change the Vector Variables in Step 7 to adjust the start and end points.

Posted By
Tags
  • Stingray
  • Animation
  • Foundation
  • General
  • Building Levels
  • Creating Interactions
  • Environment
  • Simulation and Effects
0 Comments
To post a comment please login or register
*Save $66 per month on Autodesk's Suggested Retail Price (SRP) when purchasing 1 year term 3ds Max or Maya subscription.