Here’s my code. I’m trying to create a delay after the if function, but can’t do anything, I’m beginner. In python it’s only one line code without any function or something ( time.sleep(5) ). Can anyone help me?
Thanks.
void DoorsLstn(){
chkdoors = !chkdoors;
if (chkdoors){
getspeed.speed = 0f;
OCanim.Play("Armature|Close");
"time delay here :))) in python it's simple: time.sleep(5)"
}