I have NPC’s roaming about my level. The player character is a helicopter. The AI only seems to work if the helicopter unit is sitting on the NavMesh, for instance the Can See Player function to return a Vector.
I would like the NPC’s to be able to see the player helicopter whilst it is flying about. How would I achieve this using AI and the Navmesh? My current resolution is to have a NPC - Collision Sphere, extract the Helicopter location vector this way.
Thanks for your reply. I should had stated that the NPCs I am referring to are ground based. For example, an infantryman running about on the ground. If they see the helicopter, I want them to run/follow/shoot at the helicopter/player.
But as soon as the helicopter/player lifts off the ground it is not projected on the navmesh, so the NPCs ignore it and carrying on running about like headless chickens.
How can I project the flying helicopter onto the navmesh whilst it is in the air or make it visible to the NPCs so that they do what I want?