/**************************************************************************** * Called when the object is first created * TimS March 18 2002 ****************************************************************************/ OnCreate() { VAR tmp; tmp = 0.5; FX_AddStream( THIS, 1.0, // Number of times to tile the detail texture 0.000, // Scroll speed of the base texture -0.00, // Scroll speed of the detail texture 0.000, // Scroll speed of the opacity map "LEVELDATA_TMS_PUDDLE01", // The TMS mesh to use "LEVELDATA_DDS_PUDDLE1", // The base texture "LEVELDATA_DDS_WATER_FLOW2", // The detail texture "LEVELDATA_DDS_WATER_REF2", // The environment map "LEVELDATA_DDS_PUDDLEOP01" // The opacity map // "LEVELDATA_DDS_WATER" // The base texture ); // Pre-cache and set up the stream sound // FX_PrecacheSound( "AUDIO_WAV_STREAM01", 1, 1); // FX_SetSoundDistances("AUDIO_WAV_STREAM01", 300.0, 5000.0); // FX_PlaySound( THIS, "AUDIO_WAV_STREAM01", 1.0, -1 ); KillScript( THIS ); }