I'm currently having an issue with the battle AI. Basically, I set the AI to check the distance between user and target. If the enemy is within a distance of the user, it then enables a bool object variable on the user of the AI. However, the AI will not change the variable. It will only change it through the object ID option. This is not desirable, as it needs to be used on multiple AI in the same scene.
The way I set it up works fine in Ork2(currently moving my project to Ork3), so I'm not sure what's wrong.
Thanks
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Is the combatant using object variables?
If you want to use object variables on combatants, I'd recommend to enable it in the general combatant settings for all combatants - enable Use Object Variables and Local Variables in Combatants > Combatants > General Settings in the Base Settings > Object Variable Settings.
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!
It's fine tho. I think I'll work around it by using an auto-machine to activate the object vars based on distance with a raycast and then use that to enable Battle AI via variable.
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!
This might be due to combatant prefab setup, e.g. if the root of your prefab isn't what's moving, the combatant will always be considered at it's original spawn position. There's the Child as Root setting in the combatant prefab settings for that.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Schematics + a little custom code is working out better for me ATM, so it's not too bad. Kinda setting it up like behaviour trees.
Thanks for the help