how to spawn enemies with random color variations

Hi, I am building a mini game and currently have one enemy and i would like to have him spawn in random colors. Is there away to do this with blueprints?

In enemy material, set a vector parameter in BaseColor:

At the construction script of the enemy:

Now, everytime you spawn an enemy, he will have a random color:

1 Like