Welcome back everyone in this special bonus video, I'm going to show you guys a couple methods to make it rain in your level and I do believe it would be appropriate to make it rain since our sole city content pack has some assets that make it look like it is raining for example, throughout my entire level on my floor here I placed this material that looks like raindrops are falling upon it. Now, if I'm to move up in our sky a little bit, you don't actually see any rain falling whatsoever. But our material if I scroll on down here a little bit looks like it is. So the first way I'm going to demonstrate getting rain in your level is a rather brute force way of doing it. And that would simply be to come into your soul city pack in the Content Browser. Let's do a filter by particle systems and in MySQL Search box up here I'm just going to type in rain.
And the one I'm looking for is p underscore rainstorm. You can drag one of these in here and as soon as you let it go, you can see that you've added some rain to your level. But you will notice a problem that is immediately apparent if I am to move over to the right here it is only raining in that small stretch back over here it is not raining at all and way over here it is not raining at all just in that one little sliver. So a couple ways you could go about fixing this and one would be you can place a whole bunch of these rain particles all throughout your level to encompass it all or you could come into the rain particle asset itself, double click on it. And in here, there are some modules related to this emitter. related to how this record particle falls, how big it is, how long it lives etc.
For example, you could come in and adjust the initial location at which this particle emitter is spawn. Now, we didn't talk about this at all throughout the course, the cascade editor here and honestly, I don't really want to get into this too much, but I do want to just point you to where you could possibly make some alterations to your p underscore rainstorm particle a little bit of warning here if you are going to go this route of modifying the particle itself to be much bigger to spawn a lot more raindrops, etc. You may want to duplicate this asset first. So that is how you can get rain all throughout your level. And of course, if you're going to have some rain, you probably want some sound to back it up. So to go with this brute force way of placing a lot of these particles throughout your level, we could add some sound of rain by coming under our blueprints.
Tab along our toolbar. And let's jump into our Level Blueprint. Now our Level Blueprint is where we can write scripts specific to this one level. And you see a couple of event nodes that live out here. By default, I'm going to get rid of this event tick. But I do want this Event Begin Play.
And what I can do here is simply drag off a wire, type in the place sound to D. And there is a sound asset that lives in the Seoul City pack called rain heavy, and it doesn't really matter if you use the Q here or the WAV file, but I generally like to use the Q if there is one. And so this should be enough for us to hear some rain while we are playing. So I'm just going to compile that in save and then click play and then You can hear some rain going on in the background. Now obviously, you can't see any rain yet because I placed our rain particle way over here. Here's the rain itself. So there you go.
That's the rather quote unquote brute force way of getting some rain in your level. Now, I'm just going to get rid of this bit of script here in our level blueprints, Compile and Save this and then I'm going to exit out of my Level Blueprint. And I'm also going to Nick's out, get rid of my rain particle here because I want to show you a second somewhat tricky way of adding rain to your level as well. And this is perhaps a more performant way of adding rain to your level. And the way I'm going to do this is I'm going to jump into my first person, blueprint BP, select my Blueprints folder here. I need to make sure that I clear out my filters here.
So let's exit out the rain. Let's get rid of particle system filter by right clicking on it and removing it. And I'm going to select my first person character. Let me just exit out of that real quick. And I'm going to jump into my viewport. And what I'm going to do is I'm actually going to add a particle system and an audio component here as components to make it rain over the top of our character.
So with our capsule components selected here in the components tab, let's add a component. Let's add a particle system. And I'm going to call this VFX underscore rain. And then over in the Details panel, I can slot in my rain particle. And that was the rain storm at p underscore rainstorm and you can see See that already it is raining above our character. And then to coincide with that, I'm going to select our capsule component once again because I want this component to be attached to our capsule component.
That is to follow us around all nice like, and I'm going to add an audio component here. And I'm going to call this s FX underscore rain. And with that selected, over in the Details panel, I can slot in that sound to rain. So now check it out. If I jump in and play from here. It'll just take a moment there but you can hear the rain, you can see the rain.
And now you'll notice that the rain is essentially following me wherever I go. And people are none the wiser that it's not actually raining way off in the distance. Now This is a somewhat tricky solution, but I'm gonna point out a few gotchas to know about that you may want to work around. Some gotchas to know about are if you get a speed boost of sorts, or if you've tweaked your character movement components, such that your character moves around quite quickly, you can outrun your rain particle. So let me just quickly change my character movement, Max walk speed, let me double it actually, let me triple instead of 600, I'm gonna go 1800 Compile and Save. And if I play, it's gonna be raining a little bit.
Let me get off into some open space, I can really demo this. And now you're gonna see I'm out running my rain. And then it catches back up to me. So that is a little gotcha to know about. And then one last gotcha to know about actually if I just jump in and play is that that trick really only works if you are completely in it. outdoor environment like if I had a roof over my head, kind of like I have this little awning over my head right now it's just gonna rain right through it so that's probably not what you want is gonna break immersion a little bit so just be aware of that.
Alright guys, so we just demonstrated a couple ways that you can go about making it rain in your level. Hope you found that useful. We will see you guys in the next one