Item pick up count
I have a number of objects in my project that you can pick up and place elsewhere. I'm currently doing this by having a pickup version and a placed version, the placed versions are already in the game and simple toggle to visible if an item is "placed" there.
What I currently want to know how to do is, if I pick up 2 of the pickup actor BP's, I want to be able to place 2 back down, no more, no less.
At the minute I'm using a bool on the Pickup BP which gets cast from the Placed to check if one has indeed been picked up.. I don't think this method will be possible for multiple accurately will it? What would be my best option?
asked Dec 12 '14 at 02:41 PM in Blueprint Scripting
answered Dec 12 '14 at 03:07 PM
For some reason my initial attempt failed because although it is a class blueprint, each instance of it was setting its own individual number, so going up to one and picking it up set the pick up count to 1. But the next one went to 1 again.
So I've made the integer a value on the player character which I cast to in each of my actor blueprints. All working now, thanks for the suggestion miligram9!
answered Dec 12 '14 at 05:43 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here