/**************************************************************************** * KGenPump.SNL * Base logic for Kewlett Generator Pumps * DAVIDE Jan 19 2003 ****************************************************************************/ ///////////////////////////////////////////////////////////////////// // Globals ///////////////////////////////////////////////////////////////////// VAR g_Generator; ///////////////////////////////////////////////////////////////////// // Prototypes ///////////////////////////////////////////////////////////////////// /**************************************************************************** * Called when the KGen are first created * DAVIDE Jan 19 2003 ****************************************************************************/ OnCreate() { // set the generator g_Generator = ClosestObjectWithOBL(THIS, "Generator"); } /***************************************************************************/ /**************************************************************************** * Called when the Level starts * DAVIDE Jan 19 2003 ****************************************************************************/ OnBeginScript() { } /***************************************************************************/ /**************************************************************************** * Called when destroyed * DAVIDE Jan 19 2003 ****************************************************************************/ OnDestroyed() { CallFunction(g_Generator, "OnDestroyPump"); } /***************************************************************************/