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"

Adding a self reference to an array in construction script.

I have a blueprint, that when it is created, adds a reference to itself to an array. The problem is that when I am trying to get that reference after setting it, it is returning as though it is not set. Here is a screenshot of the relevant nodes:

http://i.imgur.com/r5eL7RU.png alt text

Product Version: Not Selected
Tags:
more ▼

asked Jun 09 '14 at 02:05 AM in Blueprint Scripting

avatar image

ThatGuyNex
1 1 2 3

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

2 answers: sort voted first

As an update I redid the board creation flow from scratch, having an extra Blueprint solely responsible for creating the board, storing handle information and taking care of interaction. It seems to be working appropriately this way, with the the handles being stored in an array successfully. I'm still not too sure where the problem was though, as the code is almost identical, just moved around.

more ▼

answered Jun 10 '14 at 04:34 AM

avatar image

ThatGuyNex
1 1 2 3

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

First of all try storing the calculated ID in a local variable and use that instead of dragging the pin every time. I'm not an expert here, but I bet the value gets calculated every time you do that.

--mieszko

more ▼

answered Jun 09 '14 at 01:45 PM

avatar image

MieszkoZ STAFF
7.3k 225 57 413

avatar image ThatGuyNex Jun 10 '14 at 03:14 AM

In the actual code it only gets used once, the nodes to the right were just hastily put together in order to try and figure out what is going wrong (I calculate the appropriate ID based off some functions to calculate appropriate moves in the controller BP, so it doesn't need to get stored in actuality). That actually was something I was wondering about however so thanks for the tidbit anyways.

(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