How can I create a pick up system where you have to pick up both objects to continue?
Hey i have been looking at this for hours to no success, what i want to do is create a kind of pick up system where, you have to pick both objects up to be able to continue,
here i have it so that went it's interacted with it destroys itself and then switches the bool to true, meaning it's been picked up, and that works all fine
my problem comes in when i try to check that both bools are true and then active an action off it, in the level blueprint this is what i have
i have referenced both of the blueprints to the level blueprint and gotten hold of the bools from both and checked them, but i seem to be getting the "Accessed None 'Pickup1' from node Branch in blueprint Leak
Leak is the name of the blueprint for the level, it also does the same for Pickup 2 and after reading other questions with the same problem i am still unsure what is causing it
Any help would be amazing, thank you very much!
Your original plan should have been able to work, the problem is that you were setting the boolean value after the destroy actor. In Blueprints, once you destroy an actor all functionality stops at that moment, so your bool was never getting checked.as true.
answered Aug 05 '14 at 05:33 PM
It means Pickup1 varable is not set and empty when it was called to get bool, do checks if Pickup1 is set... also set Pickup1 if you not doing that. You can get anything from nothing
answered Aug 04 '14 at 05:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here