Non-Random Patrol

Forums 💬 NodeCanvas ⚙️ Support Non-Random Patrol

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #18671
    emmcd333@gmail.com
    Participant

      Hey Guy,

      The random version is fine poking around, but, I’d like to create a a sequential patrol. I prefer not to edit around original code(too many surprises in the past), so, just a quick tip on your way of modifying the Random Patrol edition to accomplish it.

      Thanks

      #18678
      Gavalakis
      Keymaster

        Hello,

        Here is a modified version of Patrol.cs script. This will also be included in the next version.
        There is now an option to set the patrol either Random or Progressive.
        Please open Patrol.cs and replace all the code with the following:

        Let me know if this works for you.
        Thanks

        #18677
        emmcd333@gmail.com
        Participant

          Works like a charm. Thanks.

          On another note, I was looking at setting up a GetOtherBlackboardVariable. Can I use the same structure with replacing the Set with a Get and maybe a a variable reference for clarity.

          This is really working well for us, BTW.

          #18676
          Gavalakis
          Keymaster

            Hello,
            I’m glad it works for you 🙂
            There is already a GetOtherBlackboardVariable action task. Please make sure you have the last version from the asset store and it is there 🙂

            Thanks

            #18675
            emmcd333@gmail.com
            Participant

              Got it. I had updated to the latest rev and unfortunately for me it had reactivated a couple of behaviors I had disabled. I think I returned to two revs back. Did I update incorrectly? Was caught off guard.

              #18674
              Gavalakis
              Keymaster

                Hello,
                Please remember to remove the old NodeCanvas folder and re-import the package anew whenever you update for best practice. Do you mean the update reactivated NodeCanvas related tasks/nodes or some other non-NodeCanvas components?

                Thanks

                #18673
                emmcd333@gmail.com
                Participant

                  The reactivated tasks were ND. It wasn’t that difficult to fix, actually. But, as a note, it would be a challenge down the road. I was sort of testing what Unity means “Deleting previous package”…obviously not what I anticipated. But your right about Best Practices. Sorry, to bother you on it. It was intended more as an FYI.

                  #18672
                  Gavalakis
                  Keymaster

                    No worries at all and glad you got this working in the end.
                    Thanks!

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.