Precipitationd class
by Roshan Kuriyan · in Torque Game Engine Advanced · 05/30/2006 (9:15 pm) · 3 replies
I want to implement rain effects in my game with a delay in start and stop rain effects.
actual in the precipitator class there is private field "turbulencedata" with struct as its data type , question is how to specify this data field in script and will this field bring my desire effects.
thanks in advance
actual in the precipitator class there is private field "turbulencedata" with struct as its data type , question is how to specify this data field in script and will this field bring my desire effects.
thanks in advance
#2
06/02/2006 (9:52 pm)
Thanks tom , but it is not bring the delay rain start and stop .
#3
to start the rain with a five second delay, or you could reschedule an increaseRain function that slowly starts and stops the rain over some time.
-- Markus
06/03/2006 (1:27 am)
You can use somthing like:// Stop the rain
myPrecip.modifyStorm( 0.0, 10 );
// Schedule rain in 5 secs.
schedule(5000, 0, startRain);
function startRain()
{
myPrecip.modifyStorm( 1.0, 10 );
}to start the rain with a five second delay, or you could reschedule an increaseRain function that slowly starts and stops the rain over some time.
-- Markus
Associate Tom Spilman
Sickhead Games
Going to 0 will turn it off 1 will be 100% strength.