AI Navigation ~ Move To With Filter, Create Custom Pathing Using Nav Modifiers
I’ve created a video and a sample BP-Only project (+ my Victory Plugin) that shows you how to use Nav Modifier Volumes and Navigation Query Filters to create custom pathing for your units!
**Use Case: Electric Currents and 2 Types of Characters** In my example, I have two types of units. The **blue unit** is immune to electricity, and does not need to path around electric currents. The **red unit** bids us all a fond farewell if it passes thruogh an electric current. So in this case I can't just block of areas that have electric currents completely from the nav mesh, or else the blue unit cannot pass through freely as it should be able to, taking a shortcut as a result. **This is a case where Nav Modifiers and Query Filters really shine!** I only want to **filter out** certain sections of the nav mesh for the red unit, while still allowing the blue unit to pass through those areas freely.
Custom BP Node
In order to actually be able to use query filters and nav modifiers in a BP only project effectively, I made a custom BP node, AI Move To With Filter.
This node allows me to tell the unit to move to a certain location, while using a query filter, only in Blueprints!
**Changes Nav Behavior Filters ~ Per Move ~ If You Want To!** Using my Victory BP Library node, you can actually have a unit changes its navigation filter per move if you want to! This enables you to have the AI respond to dynamic level conditions (like if the electricity in my example gets turned off), or if you just want the AI to confuse the player by randomly switching its pathing preferences!
Project Download Link
Visit my Community Content Thread for full details and updates:
**Latest plugin download on the UE4 Wiki: (8 mb) ** https://wiki.unrealengine.com/File:VictoryPlugin.zip
Victory Plugin on Media Fire
If your browser is not updating the Wiki download page to the most recent version, you can use my alternative Media Fire download link!
Please note clicking this link will not start a download instantly, it will just take you to the Media Fire file description.