/* ===================== sdClientScriptEntity::CallNonBlockingScriptEvent ===================== */ void sdClientScriptEntity::CallNonBlockingScriptEvent( const sdProgram::sdFunction* function, sdScriptHelper& helper ) { if ( helper.Init( scriptObject, function ) ) { helper.Run(); if ( !helper.Done() ) { gameLocal.Error( "sdClientScriptEntity::CallNonBlockingScriptEvent '%s' Cannot be Blocking", function->GetName() ); } } }
/* ================ idScriptObject::CallNonBlockingScriptEvent ================ */ void idScriptObject::CallNonBlockingScriptEvent( const sdProgram::sdFunction* function, sdScriptHelper& helper ) { if ( !function ) { return; } if ( helper.Init( this, function ) ) { helper.Run(); if ( !helper.Done() ) { gameLocal.Error( "idScriptObject::CallNonBlockingScriptEvent '%s' Cannot be Blocking", function->GetName() ); } } }