Announcement

Collapse
No announcement yet.

PlaySoundOnActor does not work

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

    PlaySoundOnActor does not work

    I was wondering if PlaySoundOnActor is still in use in 4.12.Because the compiler keeps saying AActor does not have this member.
    Click image for larger version

Name:	WL1)`U`D}21E5VJ4J8E{JZR.png
Views:	1
Size:	4.3 KB
ID:	1187709

    #2
    I'm not sure how to answer your question (as I'm just starting out with C++ in UE4) but this might help: https://answers.unrealengine.com/que...tor-in-41.html


    Sam Cross
    Reina Interactive

    Comment


      #3
      Thank you very much! It does help.

      Comment


        #4
        Hello,
        I tried this one and it works fine

        #include "Kismet/GameplayStatics.h"

        UGameplayStatics::PlaySoundAtLocation(this, MySound, GetActorLocation());

        I hope it helps

        Comment


          #5
          youssefmyh I sure hope it helps the guy who made the post in 2016, and was last seen online in 2019.

          Comment

          Working...
          X