I’m trying to follow the documentation on programming but it gives me errors.
I see others have experienced the same issue in another forum post and used “virtual void” to fix it but this did not work either
I’m trying to follow the documentation on programming but it gives me errors.
I see others have experienced the same issue in another forum post and used “virtual void” to fix it but this did not work either
This should go in the .h to declare it:
virtual void PostInitProperties() override;
and this in the .cpp to define it:
void AFloatingActor::PostInitProperties()
{
Super::PostInitProperties();
DamagePerSecond = TotalDamage / DamageTimeInSeconds;
}
It should be out of all { … }. Try and place it unter the closing {} of Tick().
Hey it’s working now, thank you for your help!! ![]()