Hi all,
I’m trying to set the WindSpeed on the UWindDirectionalSourceComponent of my AWindDirectionalSource but am getting a fatal error LNK1120: 1 unresolved externals. I’ve included the Header file etc and tried every permutation I can think of (noob c++ guy here i’m afraid).
// Increase Wind
//UWindDirectionalSourceComponent* windsourcecomponent = WindSourceActor->GetComponent();
//windsourcecomponent->SetSpeed(0.5f);
WindSourceActor->GetComponent()->SetSpeed(0.5f);
//if (WindSourceSystem)WindSourceSystem->SetSpeed(0.5f);
You can see from the above the different things i’ve tried.
Error Message thus…
1> Creating library H:\UE4 Projects\MM2EE_UE4\Intermediate\Build\Win64\UE4Editor\Development\MM2\UE4Editor-MM2-2342.suppressed.lib and object H:\UE4 Projects\MM2EE_UE4\Intermediate\Build\Win64\UE4Editor\Development\MM2\UE4Editor-MM2-2342.suppressed.exp
1>Module.MM2.cpp.obj : error LNK2019: unresolved external symbol "public: void __cdecl UWindDirectionalSourceComponent::SetSpeed(float)" (?SetSpeed@UWindDirectionalSourceComponent@@QEAAXM@Z) referenced in function "private: void __cdecl AWeatherManager::ProcessWeatherStateChange(void)" (?ProcessWeatherStateChange@AWeatherManager@@AEAAXXZ)
1>H:\UE4 Projects\MM2EE_UE4\Binaries\Win64\UE4Editor-MM2-2342.dll : fatal error LNK1120: 1 unresolved externals
Any help greatly received.
Many thanks in advance,
Matt.