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