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"

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?

Product Version: Not Selected
Tags:
more ▼

asked Dec 12 '14 at 02:41 PM in Blueprint Scripting

avatar image

BraXzy
41 10 14 17

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

2 answers: sort voted first
  1. Integer summing up picked up actors?

  2. Array of bools - one bool per item instance?

more ▼

answered Dec 12 '14 at 03:07 PM

avatar image

Doctor Ergot
265 15 29 38

avatar image BraXzy Dec 12 '14 at 03:12 PM

I was just thinking about Integers.. I think bools could work but there would be a hell of a lot of checking and setting them. I think int's will be the way to go.

I just get confused when I start casting between two things, I still haven't fully gotten my head around it. Like which thing would set the integers and which thing would cast to what to check what the integer is etc.

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

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!

alt text

alt text

more ▼

answered Dec 12 '14 at 05:43 PM

avatar image

BraXzy
41 10 14 17

(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