Announcement

Collapse
No announcement yet.

How do you dectect volumes a pawn is in?

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

    How do you dectect volumes a pawn is in?

    Just like to know if there is a method within just the code to do this, if not can it be done within blueprints?

    #2
    If the "volumes" you are checking against are actors, you might be able to use: void AActor::GetOverlappingActors(TArray<AActor*>& OverlappingActors, UClass* ClassFilter) const

    Like...
    TArray<AActor*> TouchingActors;
    GetOverlappingActors(TouchingActors);

    Comment


      #3
      That's a great solution, the volumes I mean are like trigger volumes etc.

      Comment


        #4
        The result from GetOverlappingActors should include things like triggers.
        Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
        Twitter: @EpicJamesG

        Comment


          #5
          Perfect, makes my life easier

          Comment

          Working...
          X