top of page
Search

Rain System Integration

  • Writer: toofan tahmouresi
    toofan tahmouresi
  • May 3, 2021
  • 1 min read

After creating my rain particle I needed to integrate it into the game mechanic and defined some parameters to control the rain mechanic.


For this matter, I created a different Bluprint called WeatherController. In this blueprint, I defined some variables RainLevel and ChangeRate, and also creating a material parameter for the global aspect of the game.

ree

in the material parameter, we add some scalar parameters such as RainLevel and also the Gloom which will be explained in the next blog. after integrating the Mp_global parameters. in the weather control blueprint I added the new method to calculate the rain level and change rate of the rain system.



ree

and after these integrations, I created a new variable called sky and as object type, we select Bp sky sphere. and with reference to the sky, we add the update sky nod and connect the rain level method to this node.



ree

right after that in the event graph tab, I created a custom method called toggle rain so according to that I could play the rain particle or stop in according to our need and set the rain level variable.



ree

for calling this custom method on the Event Begin Play we call our toggle rain method and also attach it to the player component and set it off at our desired time.


ree

after these integrations, I added the weather controller blueprints into the scene and define the sky Bp in the default section.

ree

and the result is:






 
 
 

Comments


Keep Up with My Latest Work

Thanks for submitting!

© 2021 by Toofan Tahmoures

bottom of page