/**************************************************************************** * Called when the object is first created * TimS March 18 2002 ****************************************************************************/ OnCreate() { VAR tmp; tmp = 0.5; FX_AddStream( THIS, 5.0, // Number of times to tile the detail texture -0.06, // Scroll speed of the base texture -0.2, // Scroll speed of the detail texture -0.05, // Scroll speed of the opacity map "LEVELDATA_TMS_RIVER", // The TMS mesh to use "LEVELDATA_DDS_WATER", // The base texture "LEVELDATA_DDS_WATER_FLOW2", // The detail texture "LEVELDATA_DDS_WATER_REF", // The environment map "LEVELDATA_DDS_WATEROP" // 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 ); }