Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Weapon System: Changing Vector Parameter


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".

alt text

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:

alt text

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.

Product Version: UE 4.11
2016-06-29 (2).png (179.6 kB)
2016-06-29 (4).png (60.0 kB)
more ▼

asked Jun 29 '16 at 03:54 PM in Blueprint Scripting

avatar image

31 2 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question