// ANGELSCRIPT BUG: Must have ==true or it is always true
if (this.FirstElapse(2000)==true)
C++
bool ScriptThread::FirstElapse(unsigned int time)
{
if (time==0 && elapsedScriptTime==0)
return true;
else
return elapsedScriptTime >= time && lastScriptTime < time;
}
C++ Registration
result = ScriptManager::engine->RegisterObjectMethod(className, "bool FirstElapse(uint)", asMETHOD(ScriptThread, FirstElapse),asCALL_THISCALL); RakAssert(result>=0);