Hey,
So I have NPC that is added to the game on design time with Add Combatant Component. And I want to use "Set Nav Mesh Target" event step to tell NPC Combatant to go to certain waypoint.
What does the Combatant need to follow the "Set Nav Mesh Target" event step instruction?
This step works on player which shares the same base prefab with NPC.
Do I need to manually add some component ? Or is there something in move AI I need to adjust?
Thanks
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
it also occurred to me just now, I have not checked if "Set Nav Mesh Target" just changes target or also tells it to start moving. I'll look at code.
It'll just choose a target based on the last update. So if the latest update came from MoveAI it'll use that target, and Visa versa.
They can compete and cause weird issues.
Is your navmesh set up and is the target valid? Also how are you calling the movement? Is it a separate event that searches for the combatant?
If your combatant isn't moving at all there's a good chance the event calling the movement isn't pointing to him correctly.
I used a separate event that searches for object Name(Clone) and then navmesh targets it.
That seems to work pretty reliably
This works for player, but does not work for NPC. Either scene placed or ORK Spawned.
The NPC and Player share the same physical prefab.
If still not working then I have no idea why. Maybe put more detailed screenshot then we will know why.
P/S: Can you tell me how did you able to put the screenshot in here? I always have to put a link, whenever I put image via URL is always show error image.
For image you just need to use full image URL. with .jpg/.png etc at the end.
The image upload sites usually give you URL that points to their page instead of image. You can right click image and use "Copy Image Location" to get full url.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Also, thank for the how-to post the image.