I've been enjoying the crap out of using the Profile Bot's built in Routines to handle combat for me. Nothing makes me happier than initiating combat and letting the bot finish slaughtering my foe.
That said, I'd love to wander into an area and loose the bot on a general rampage. I've been going somewhat insane trying to utilize the Combat, Movement, and Targeting system/routines bundled with WildBuddy.
Although I'm certainly a scriptkiddy more than a programmer, the async tasks that are used makes my brain turn into jelly. My first mistake was not getting Visual Studio working out of the gate... BAD MOVE on my part.
Could I get an example or two using the DefaultRoutine to select the 'BestTarget'? Every time I do, even after sorting out how tho async and coroutine system, my code tosses a 'System.InvalidOperationException: Collection was modified; enumeration operation may not execute.' when I try to get the DefaultRoutine.Targeting.BestTarget' from the PerFrameCachedValue (both through the existing or a new function).
Further, although I think I have it, would anyone mind sharing the right way to move to the selected target and how to initiate combat? At present I intend to use CommonBehaviors.MoveWithin(Actor.Position, PullRange, true, true, false)' and GameManager.InputManager.KeyPress(InputAction.CastInnateAbility); unless someone has a better recommendation or approach.
That said, I'd love to wander into an area and loose the bot on a general rampage. I've been going somewhat insane trying to utilize the Combat, Movement, and Targeting system/routines bundled with WildBuddy.
Although I'm certainly a scriptkiddy more than a programmer, the async tasks that are used makes my brain turn into jelly. My first mistake was not getting Visual Studio working out of the gate... BAD MOVE on my part.
Could I get an example or two using the DefaultRoutine to select the 'BestTarget'? Every time I do, even after sorting out how tho async and coroutine system, my code tosses a 'System.InvalidOperationException: Collection was modified; enumeration operation may not execute.' when I try to get the DefaultRoutine.Targeting.BestTarget' from the PerFrameCachedValue (both through the existing or a new function).
Further, although I think I have it, would anyone mind sharing the right way to move to the selected target and how to initiate combat? At present I intend to use CommonBehaviors.MoveWithin(Actor.Position, PullRange, true, true, false)' and GameManager.InputManager.KeyPress(InputAction.CastInnateAbility); unless someone has a better recommendation or approach.