I’m trying to link the radius of the sphere of one of the particle emitters with how much the trigger of a controller is pushed in. The more pushed in, the bigger the sphere. As far as I know, this has to be done by changing the constant in the Particle Parameter, but how do I link this constant to a value I can edit in Blueprint?
33997-33998-
Bumping this as I have the same question…can change many things but a constant seems to not be one of them? Thoughts anyone? Thanks
Hey Roach,
For that particular constant, you need to use a “Set Float Parameter” node in your blueprint. I am attaching a project that will help explain what I mean, but I’ll also break it down for you here in case the link becomes broken in the future.
[Example Project][1]
In the example project, I’ve linked Numpad 8 and Numpad 2 up to manipulate the Parameter.
So what I did was make a fresh particle system and simply add a Sphere (Seed) module to the Emitter(and enabled surface only). Then I changed the Start Radius distribution type to DistributionFloatParticleParameter. Make the Parameter Name something unique (“TestParticleParameter” for me). Make the Param Mode “DPM Direct”. As you know, the Constant is what we will be manipulating here, so I set mine to 50 by default.
So, I created two inputs in my project settigns called “Increase”(Numpad 8) and “Decrease”(Numpad 2).
In the following screenshot, the important node is Set Float Parameter. You must use the exact parameter name that you set in Cascade. Then hook in your particle system component.
The rest of the node network is used to increase and decrease the size as well as cap it between 0 and 250 units.
Open image in new tab to see full size
Let me know if that makes sense.
Working great on my end, thanks !
Thank you very much
This doesn’t seem to work on 4.15. If I set the parameter with Event Begin Play, it works, but after that, updating the value doesn’t seem to do anything.