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"

Conditional To Find Actor In Array?

I have an Inventory Array storing Items as (Actors). Not Class_Actors.

I am trying to run a Conditional == (Object) to Test to see if its the Blueprint_Actor_Item_Child I previously stored in the array. For some reason, even though I can see my Blueprint Item being stored in the array. I cannot seem to use a conditional to match that item. Attach is screenshot of the test I am running.

I am wondering if when I add my item to the array it is given a different type of class or something that it cannot be matched with the original blueprint actor anymore. Because my Inventory Array for items is an array of actors. Not classes.

Any help would be appreciated.

Basically trying to find a way to see if the item(actor) in the array is equal to my selected item(actor).

Thank you. alt text

Product Version: Not Selected
more ▼

asked Jul 11 '14 at 03:30 AM in Blueprint Scripting

avatar image

146 32 48 54

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

1 answer: sort voted first

You will need to cast to the Actor before comparing , I am thinking. When you add an object as as "Actor" into the array, it will only return as a typr 'Actor'. You must manually cast it to the original Class.

So before feeding it to the '==' node, cast it to the type of object you are comparing against.

more ▼

answered Jul 11 '14 at 03:57 AM

avatar image

3.4k 154 51 271

(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