Hi,
I have a enemy using Navmesh to get to a collection of pickups. The pickups need to be dynamic as in, they can be picked up by the player as well, so I've set a boolean on each object to say if its available or not.
I'm checking this condition every frame, so when the enemy enters the trigger zone of where the pickups are, it knows which it can pick up.
When the enemy reaches the trigger, I have a Find Closest action to see which item is closest to the enemy, so then I want to update the destination of the Navmesh to that item and then loop the FSM's so the enemy can go from one item to the next.
Problem is, I cant set the destination in the Navmesh to the closest pickup item. The only options are Vector3, item, etc. So if I set it to Vector3, I dont know how to convert the results from Find Closest, to a Vector 3.