Making noise in C++

So, i wanted to do this in C++ and was able to do so! I want to share what i found out, it was rather simple finally.

So first i needed to see, how the OnLanded is done in c++. All i did was, i searched character.h in Solution explorer and found this:

There i searched Land and found this:

Now, that just needed implementation:
So in .H file i overrided it

in .CPP file implemented it, with the makenoise

So, noise volume is 1 and instegator is this(this class), location is GetActorLocation and max distance is 800.



Cool ! I think that is a good practice.

Privacy & Terms