Error when building: -waitmutex" exited with code 5 . Please verify that you have sufficient rights to run this command

it worked for me when i changed the UPROPERTY to a float instead of an uint32. It didn’t like uint32 for some reason…
( except for when i made it act like a bool by doing gunType : 1 , but that is not the behavior i wanted.)

…Something else I had to do to fix this sort of error in the past was by patching/removing old code in a class generated by unreal engine using an old version of the engine. It was code in a vehicle physics car from an unreal engine template.