JB3DG
Resource contributor
- Messages
- 1,325
- Country

Ok so say now i press a button in the pit and i want it to stay pressed for half a second and then spring back to its original position. Its a XML variable being controlled by a C++ module and i want to perform the action in C++
so the basic logic is if bool my_var == true wait 0.5 seconds then my_var = false;
So....where/how do i get the 0.5 seconds? Im guessing it makes use of time.h somehow....
so the basic logic is if bool my_var == true wait 0.5 seconds then my_var = false;
So....where/how do i get the 0.5 seconds? Im guessing it makes use of time.h somehow....
