Error C2064: term does not evaluate to a function taking 0 arguments

Hello Everyone I have been following this and am having issues fixing this issue.
The tutorial is outdated so I have had to fix many problems but cant figure this one out.
error C2064: term does not evaluate to a function taking 1 arguments

Here is where the problem is occurring:

FVector LaunchDirection = MuzzleRotation.Vector();


Any help will be appreciated.

Had a similar issue and just removing the “()” at the end helped. If it’s not calling a function directly, you don’t need to use the “()” at the end. Example from me:

Didn’t work:

const float AspectRatio = ParentCamera->AspectRatio();

Did work:

const float AspectRatio = ParentCamera->AspectRatio;

I am using a Scene-Component that is reading information from its AttachParent, which must be a UCameraComponent.

Hope this helps a little!

1 Like

It works for me, thank you!