Okay so lets take it one thing at a time. Sorry, I’m new to C++ in UE4 and I’ve never extended the Pawn before so, a lot of this is probably just beginner mistakes ._.
Doesn’t return anything, so how would I get the InputComponent? Something like GetController()->GetInputComponent()?
Yes, this code used to be part of a “DefaultPlayerController” component that I stuck on a DefaultPawn_BP (Blueprint) so that it got some custom controls as you see in the code (Grab, Use). But I felt that was dumb and wanted to move it into the Pawn instead but this resulted in the mess I’m in now haha
I followed a Udemy class that was backed by Kickstarter (basically the one with Learn C++ with UE4, pretty good) and he used the method seen above. I haven’t moved on to the next part yet where you make a much more complex game with AI and such so perhaps this is further discussed in that part. I have used Unity before and I was surprised too that the teacher (who also got a Unity background) just used that in UE4. I didn’t pay it much mind because he is a teacher.
The same reason as above. My understanding of UE4 C++ is still very limited. I learn by doing :')
I understand that. That’s why I’m here so I can learn a bit from my mistakes. I understand C++ but I haven’t used C++ before. Learning to use it here is what I want to do so…I’m trying. I have a bachelor’s degree in computer science so programming is not alien to me, but I was taught in Java and C#. Had to teach myself C++ so, it’s going to be rocky in the beginning I’m sure. Thanks for taking the time to teach me by pointing out my mistakes