How to call Do once(blueprints)in c++?

which class is the Doonce inherit from ? should I need to call that in c++?

1 Like

Good question, did you get a solution?

It’s just a boolean that is set and checked.

for example.

if (!opendoor) {
opendoor = true;

//do opendoor code once here 

}

//do other code here
// and here
// now lets reset opendoor so it can be called again
opendoor = false;

3 Likes

【UE5】構造体の利用【C++】 | キシロラボ here ([UE5] Use of structures [C++])

1 Like