Hello,
I am having an issue creating a weapon system using blueprints. I am currently trying to create a material instance, promote it to a variable and name it “SpriteMaterial”.
Essentially what I want is something similar to megaman where you press a button and it cycles through your weapons, changing the projectile’s color, speed, spread, animation sheet, etc.
I have created a dataTable containing the name(string) color(vector) and other information regarding the weapon Data.
The data table gets set and read properly. I can tell because I have set up a debug log to cycle through each weapon and print the relevant information and it does so correctly.
The problem seems to occur here:
When I try to change the spawned actor(BP_Shot) with an altered color value it returns an error saying:
Error Blueprint Runtime Error: Accessed None trying to read property SpriteMaterial from function: ‘ExecuteUbergraph_BP_Dude’ from node: Set Vector Parameter Value in graph: EventGraph in object: BP_Dude
Any help at all would be appreciated. Thank you.