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 error
Image of script
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
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.
answered Apr 04 '19 at 02:05 AM
Nebula Games Inc
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?
Follow this question
Once you sign in you will be able to subscribe for any updates here