Announcement

Collapse
No announcement yet.

How to count actors in radius

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to count actors in radius

    Like this but not server wide




    Here is my bp, I tried with interface but ran into the same problem of unfiltered results


    Mods: NPC Bush Peoples V6



    #2
    I would use a "Multi Sphere Trace For Objects" for this. You can specify a radius there.
    Easy to use UMG Mini Map on the UE4 Marketplace.
    Forum thread: https://forums.unrealengine.com/show...-Plug-and-Play

    Comment


      #3
      you learn something new every day, will do some research. Thank you for the reply
      Mods: NPC Bush Peoples V6


      Comment


        #4
        How can I filter hit results by object, the =(object) only outputs a boolean, how can I group all "Man" actors without others

        Mods: NPC Bush Peoples V6


        Comment


          #5
          Not even sure if this is going in the right direction

          Mods: NPC Bush Peoples V6


          Comment


            #6
            Have you tried overlap event? Add a sphere component of necessary radius and check for it overlap event with other actors. It gives you an array of objects under the overlap if I recall it correctly.
            Youtube Channel

            Comment


              #7
              Interesting, I will try that. Do you know how I can filter the array to just have one object type, Im getting 0 objects when I array filter by class. Seems every instance that spawns in changes the class name
              Mods: NPC Bush Peoples V6


              Comment


                #8
                There is also node called 'SphereOverlapActor' which provides array of actors within its radius.

                Comment


                  #9
                  Thank you, will try that
                  Mods: NPC Bush Peoples V6


                  Comment


                    #10
                    Thank You, all my problems are solved with the 'sphereOverlapActor'

                    Mods: NPC Bush Peoples V6


                    Comment

                    Working...
                    X