"Value" variable and "DeltaTimeSeconds" (Toon Tanks 139)

Hi,

Can someone let explain the “Value” variable used input mapping in the Toon Tanks?

We surely did not declare it, and they say it is an unreal common variable, which I could not find.

Also why do we have to use “GetWorld()->DeltaTimeSeconds”, why did not we just multiply it by DeltaTime like Building Escape?

Thanks alot,

1 Like

Value is a parameter of your input function. You set what the value will be in editor project settings. You can for example set that it will be 1 when pressing w and -1 when pressing s.

You only have access to DeltaTime when you are inside the Tick function. Because you are inside the Input function you use GetWorld()->DeltaTimeSeconds() instead to get the same result

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms