Damage dealing problem.

I followed a tutorial to make my character deal damage, but when I try to get the damage variable from my character, it needs some object variable. What should I put there?

Try with this.

Basically a lot of function which are accessing global world related variable need to have a world context, your level sort of. Most of the time you don’t see the pin called “World Context Object” because its hidden in classes where the world context is already defined. But in simple Object, such as you Notify, it doesn’t live in a world, so it doesn’t know what to get and let you give it to it. When that happens you can either give it a reference to your UWorld, or simply a reference to any other object which has a world, so any actor for example.

1 Like

Thank you very much.

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