Toon Tanks - Movement Speed

Hello All,

This lesson was pretty straightforward and I thought I had everythng under control in the coding section, even had the right #include and when I typed in the keyword:

  • GetWorldDeltaSeconds(this);

the old chestnut GetWorldDeltaSeconds is undefined I had no idea that I needed to throw the UGamePlayStatics in front of it. Guess I should’ve thought of it seeing as it’s in another totally unrelated class, but, I thought the include would cover that. Something to keep in mind. But then again I am extremely tired from a lack of sleep and the heat. I’ll have to vacate the room shortly as it’s getting very hot now, still it’s nowhere near as bad as January :scream:.

I understand your logic which actually make sense to me. However, just using GetWorldDeltaSeconds(this) would only look at our local functions within the Tank.h and Tank.cpp files. Since it is a function of another class, we need to add the UGameplayStatis:: to tell our code to look at another class. This is how I’ve rationalized it.

1 Like

Privacy & Terms