SetRelativeLocation ERROR fix

So if you type out

Mesh1P->SetRelativeLocation = FVector(-.05f, -4.4f, -155.7f);

You will get an error about something with the ‘=’ sign

So how you fix this is simply changing it to

Mesh1P->SetRelativeLocation(FVector(-.05f, -4.4f, -155.7f));

Because it is a function call you can not set it equal to anything

This is a fix to a bug I found

Privacy & Terms