UnityLearn - AI For Beginners - GOAP - Adding Goal Challenge & Taking a Break
August 19, 2020 AI For Beginners Goal Orientated Action Planning (GOAP) Parts 14 and 15 Beginner Programming: Unity Game Dev Courses Unity Learn Course - AI For Beginners Adding Goal Challenge Adding Goal Challenge My Approach This tutorial starts with another challenge to implement a new GAction. This time it is the GoHome GAction for the patient to return to a transform tagged "Home" after they receive treatment. This was rather straight forward as I created this new GAction that just had a Preperform method setting the target to the tagged gameobject "Home" and putting in the Postperform method that the TreatingPatient world state should be reduced by 1 (since they have finished being treated). Once this GAction was applied to the patient, it needed to connect to the previous action by having a precondition of "isTreated" and I added an after effect of "isCured". The "isCured" state was also added as the new sec...