Hi i was working on a game project using c++ and blueprints, i have set up the a rapid fire behavior on the c++ side using timer functions, it was working fine, but after updating my project from 4.0 to 4.5 the SetTimer and ClearTimer were broken, they don’t work anymore, this is the code that i used int he first place to activate and deactivate the timer
GetWorldTimerManager().SetTimer(this, &AWolfRemakeCharacter::RapidFire, RapidFireTime, true); GetWorldTimerManager().ClearTimer(this, &AWolfRemakeCharacter::RapidFire);
these two lines are broken on the 4.5 version, after searching on the forum i found some way to use the timer and change that two lines for these two ones
GetWorld()->GetTimerManager().SetTimer(this, &AWolfRemakeCharacter::RapidFire, RapidFireTime, true); GetWorld()->GetTimerManager().ClearTimer(this, AWolfRemakeCharacter::RapidFire);
but they got red underline and says: “Error: incomplete type is not allowed”
somebody can help me to fix this error ?
sorry if this is so simple, but i’m starting with the c++ side of the engine, thanks in advance for all the help.