示例#1
0
/*
=====================
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() );
		}
	}
}
示例#2
0
/*
================
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() );
		}
	}
}