News Forums RAIN General Discussion and Troubleshooting Navigation Target Detection

This topic contains 1 reply, has 2 voices, and was last updated by  Sigil 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40147

    sgebhard
    Participant

    Hello,

    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.

    Thanks,
    Sam

    #40168

    Sigil
    Keymaster

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.