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

Hello Everyone I have been following this https://docs.unrealengine.com/en-us/Programming/Tutorials/FirstPersonShooter/3/2 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();

Projectile->FireInDirection(LaunchDirection);

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!