Reference emitter from level blueprint
I'm trying to change the spawn rate of an emitter from the level blueprint but how do I do that?
I set the spawn rate distribution of the emitter to "Distribution Float Particle Parameter" and then edit it from the level blueprint right or? if yes how do I access the parameter from the level blueprint?
I mean I name the Distribution Float Particle Parameter to lets say "DustSpawnRate" and then use "get all actors by tag" / " Set scalar parameter value" or something like that? How do I do this?
asked Apr 07 '18 at 07:43 PM in Blueprint Scripting
There "Set Float Parameter" and particle system component, if you want to do that for actor via "get all actors by tag" use foreach node. Code plugged to "Loop Body" will be executed for each element of array (actor that you got) and Array Element and Array Index change on each loop, so cast to your actor and set float parameter on its particle system component. Once done code will continue thru "Completed" pin
answered Apr 08 '18 at 08:09 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here