March 3, 2022 at 5:56 pm #40147
I am working on a game with squad commands directed at AI. One of the commands is to go to a specific spot that the player/commander decides. For this command I am doing a raycast from where the camera is looking, and instantiating a navigation target where the ray hits the ground. I’ve got the instantiation working, but I am looking for a way for an AI to detect that navigation target.
If anyone has a solution, or can direct me towards a solution, I would be very grateful.
SamMarch 11, 2022 at 11:27 am #40168
Sorry for the late reply. You should be able to also add an Entity plus Aspect to those Navigation Targets on creation, then you’d be able to detect them with a normal detect node in the behavior tree.
Due to a bug you may need to call Serialize on the EntityRig if you create it from scratch at runtime.
You must be logged in to reply to this topic.