Hi!
I’ve got a question and am looking for some advice from anybody that may know. I’ve got a character that the player controls (Like the top down template…Click and the player pawn goes somewhere). Now I want the player to do gather a resource (chop a tree down). The way I’m doing this now is:
When the player right clicks a tree, I have my gather resource move the character to itself (with a looping timer), then he does an animation, and after he’s done he goes somewhere else to drop the resource off. None of this is being done with a behavior tree or AI of any kind. For some reason this seems a little hack-ey to me (although maybe that’s normally what you’d do?).
Later in the game (as my game develops) I will have NPC’s that does this action on their own (with a behavior tree and what not). Here’s what I’m wondering. I can set all this behavior up with AI in a behavior tree (moving to a resource, playing an animation for a set amount of time, then moving to another location). To me it seems easier to move the player pawn with a behavior tree. Should I just have an AIController possess my main character pawn and do this behavior instead of me manually having the gather resource communicate with the player pawn and then the player pawn communicating with a storage type building, etc…?
Basically my question is not how to do it, but just whether or not (if you were doing this), if you’d use an AIController or not (I think that’s possible on a player pawn). I’m not sure if one way is generally better than the other, or if it really doesn’t matter. Thanks for any advice everyone!