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"

Attempted to access vehicleBluePrint, but VehicleBluePrint is pending kill

Hi, Im new to UE4 and was following a tutorial from an older version of UE4 and have run into a problem when running the game. I get the error message seen within the MessageLog and have no idea how to fix it and would very much appreciate some help. If any more details are needed I can supply them.

image of cast nodes http://prntscr.com/n75e2q http://prntscr.com/n75e7m http://prntscr.com/n75e9t

Image of error alt text

Image of script

alt text

Link to the tutorial I have been following - https://www.youtube.com/watch?v=gp92v_iVGSQ&list=PLZlv_N0_O1gYdhCvvMKGpCF6LCgBz9XeS∈dex=7

Thanks in advance

Product Version: UE 4.22
Tags:
screenshot-1.png (233.3 kB)
screenshot-2.png (111.2 kB)
more ▼

asked Apr 03 '19 at 09:08 PM in Using UE4

avatar image

Englishtongan01
8 1 3

avatar image Nebula Games Inc Apr 03 '19 at 10:02 PM

Looks like a screen shot of the wrong node causing the error. Where is the cast node it is trying to pull a reference for that is null/pending kill?

avatar image Englishtongan01 Apr 03 '19 at 10:14 PM

Do you mean the script for the VehicleAdvHud or something else? I dont quite understand what part of the code you would like to see

avatar image Englishtongan01 Apr 03 '19 at 10:19 PM

Actually I believe these are the cast nodes you are looking for http://prntscr.com/n75e2q http://prntscr.com/n75e7m http://prntscr.com/n75e9t

avatar image Nebula Games Inc Apr 03 '19 at 11:14 PM

Yea, either you are trying to cast before the vehicle exists or you are casting after the vehicle got destroyed or the vehicle is not a "pawn" or "character". That would be the reasons for that error.

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

2 answers: sort voted first

I would recommend checking out video #1 and video #25 in this series. It explains how to properly cast and the other video shows you a bunch of ways to create references. Both of which seem to be issues here. Fixing it requires making proper references, setting the variables before using them, casting objects that inherit from the class you are trying to cast to etc. The link should help get you looking in the right direction.

https://www.youtube.com/playlist?list=PLyu-W38DvZhqByAoeva1jewB5s78zQHIy

more ▼

answered Apr 04 '19 at 02:05 AM

avatar image

Nebula Games Inc
5.4k 28 9 14

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

How do I fix it? Is there some sort of delay function I can add in to cast after wards, or something were I can check if my vehicle gets casted after it is destroyed or a way to check if my vehicle is a pawn of a character?

more ▼

answered Apr 03 '19 at 11:59 PM

avatar image

Englishtongan01
8 1 3

avatar image Nebula Games Inc Apr 04 '19 at 02:03 AM

You can always use the "is valid" node right before trying to use that pawn reference. Make sure the pawn is valid first. **Still not 100% sure that is the bad node either FYI. Also noticed you have another error with the controller ref in the 2nd image. So that must be an empty reference container and you never "set" the controller.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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