0

FirstPersonCharacterBlueprint

How can I convert the DoN node into C++ in Unreal Engine? I attached an image of my BP for the Double Jump feature.

I try and test this BP for the Double Jump feature in my project, but my teacher asks me to do this feature in C++. I am pretty new to Unreal and done several types of research but still do not know how to convert this BP into C++. I would appreciate any help from you guys. Thanks!

Pratik Gadoya
  • 1,420
  • 1
  • 16
  • 27
Jay
  • 1
  • 1
  • 1
    What have you tried? Do you understand what the node does? If yes, then translating this into code shouldn't be hard – UnholySheep Dec 03 '20 at 12:59

1 Answers1

1

The equivalent would be a While loop with an increment in C++

int32 i = 0;
while(i <= 1)
{
    i++;
    // Do other stuff here.
}

You may want the increment to be a class member so it can be reset outside of the scope of the containing function.

DevilsD
  • 545
  • 1
  • 5
  • 12