im pretty new to the Coding stuff and at the Moment im trying to do a simple
“Grab an object and throw it away. If it smashes on the Ground it plays a sound and the Enemy is watching at this Point so u can pass him.”
Well the Enemy is setup correctly and can hear sound and see me.
The Problem is i dont know how to get the FollowCamera via LineTraceSingleByChannel correctly as Startingpoint …
In Blueprint i got it setup correctly but in C++ i dont know how to access it the right Way.
Are you sure this code is correct? ForwardVector is just a static FVector(1, 0, 0) so no matter where you are looking, it is going to point to the same direction. FRotator::Vector() is going to “Convert a rotation into a unit vector facing in its direction.” So you don’t need ForwardVector.