Re: Delay

#2
I've found.
Whoever wants, can take a look:
http://docs.cryengine.com/display/CEPROG/Time

Code: Select all

//TEST
float m_storedTime;
CTimeValue curTime;

void Class::StoreTime()
{
curTime = gEnv->pTimer->GetCurrTime();
m_storedTime = curTime.GetSeconds();
}

void Class::CheckTimePassed()
{
curTime = gEnv->pTimer->GetCurrTime();
// Now check time that has passed since stored
if (curTime.GetSeconds() - m_storedTime > 3.f)
{
CryLogAlways("Three seconds have passed");
}
}

Who is online

Users browsing this forum: No registered users and 1 guest