Cannot compile nor open project in unreal
Hey there, begginer here. Placed a door, trigger volume that opens it after you go over it by adding a c++ component. Works great, but when I add another trigger behind the door that is supposed to close it and type the code for it it won't compile or even open in Unreal Engine anymore.
I have tried: rewriting the code, restarting my pc, repairing/reinstalling both Visual Studio and Unreal Engine, mess around with NMake paths (not sure what I did anymore its been a week+ of trying whatever I could. I would appreciate every info, or advice on what to include here to make it easier for you to see whats wrong. My code: .h cpp
VS build output: BuiltOutput
My VS version: 15.4.3
Please help and thanks for your time
asked Nov 11 '17 at 05:02 PM in C++ Programming
your close door method is incorrect.
First you have written it as: "void UCloseDoor ()" which is also misleading with the c'tor - but VS seems to overcome this.
change your line 28 in CPP to this one.
Advice for future - Pick a better Class and Method names!
Hey there Lobotomiac,
From the log looks like it's a very simple issue to solve, but I wanted to point out a few tips before giving you the answer:
Now the issue is on
Looks like you are trying to access GetOwner from the Pawn/Character? (just my guess because the issue is on the .cpp not on the header). What comes to my head is that you are not including the header file from the Pawn you are calling this function on thus the compiler doesn't know anyhing about a
If you ever need more help I'll drop you a link to an useful discord chat with a community of devs that can help you with these issues as well: http://unrealslackers.org/
Hope this helps!
Follow this question
Once you sign in you will be able to subscribe for any updates here