x

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"

Accessed None in Object var

alt text I'm a bit confused by accessing another blueprint's variables and events.

Even if I use Cast to CustomHUD I still get the same errors in log as are shown here. Everything seems to be specified ... the var, the class_C and the Custom Event (ScoreEvent).

If I use Cast to CustomHUD I get a Cast Failed (from printstring out of Cast Failed output).

Tom

Product Version: Not Selected
Tags:
capture.png (162.2 kB)
more ▼

asked Mar 29 '14 at 05:58 AM in Blueprint Scripting

avatar image

tomofnz
1.1k 46 47 84

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Based on the errors in the message you are running this from the construction script. The construction script is run when the object is placed in the world or spawned. It is very likely that you HUD does not yet exist. I can't really tell from your naming what class this is running in, nor can we see where you set the HUD variable, so beyond that I'm not sure I can help more at the moment, but in general I would imagine that calling this from BeginPlay in the EventGraph is going to get you closer to working.

more ▼

answered Mar 29 '14 at 02:13 PM

avatar image

Marc Audy STAFF
2.2k 41 35 94

(comments are locked)
10|2000 characters needed characters left

It's okay - I found out what I was missing and now I have what I wanted working nicely.

Video for this (Score shows on HUD): https://www.youtube.com/watch?v=28dfsstb59Q

more ▼

answered Mar 30 '14 at 01:28 AM

avatar image

tomofnz
1.1k 46 47 84

(comments are locked)
10|2000 characters needed characters left
Your answer
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