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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Getting array item fails even though length is 1

Hello,

I'm trying to display values of a blueprint in an array on the hud but for some reason i can´t get the item out, the array has the item (length = 1), but its value is none.

The array is defined in the gamemode blueprint and is an array of type blueprint (which is a ball).

Then when a item spawns it adds itself to the array:

alt text

And the hud tries to display variables and stuff from the blueprint:

alt text

The Draw Text that draws the number of items in the array says 1, so it is added, but for some reason i can't get the item itself.

Could it be the 'not in scope' messages? if so, how do i fix it?

Product Version: Not Selected
Tags:
arrayquestion2.png (161.7 kB)
arrayquestion3.png (354.2 kB)
more ▼

asked May 17 '14 at 08:12 PM in Blueprint Scripting

avatar image

Rens2Sea
48 6 11 13

avatar image Rens2Sea May 18 '14 at 12:46 PM

Maybe this is revelant, project crashes on startup now with the following lines in the log:

 [2014.05.18-12.32.53:831][  0]LogBlueprint:Error: [compiler] Error  Balls  of type array[object'self'] doesn't match the property Balls of type array[]

 [2014.05.18-12.32.53:833][  0]LogBlueprint:Warning: [compiler] Warning [0004.16] Compile of BP_NewBall_Karma failed. 1 Fatal Issue(s) 0 Warning(s) [in 13 ms]

 [2014.05.18-12.32.53:928][  0]LogBlueprint:Error: [compiler] Error The type of  TargetArray  is undetermined.  Connect something to  Length  to imply a specific type.

 [2014.05.18-12.32.53:930][  0]LogBlueprint:Error: [compiler] Error Default value '' for  TargetArray  is invalid: 'Literal values are not allowed for array parameters.  Use a Make Array node instead'

 [2014.05.18-12.32.53:930][  0]LogBlueprint:Error: [compiler] Error Default value '' for  TargetArray  is invalid: 'Literal values are not allowed for array parameters.  Use a Make Array node instead'

 [2014.05.18-12.32.53:930][  0]LogBlueprint:Error: [compiler] Error Failed to find class for pin  Balls 

 [2014.05.18-12.32.53:931][  0]LogBlueprint:Warning: [compiler] Warning [0004.26] Compile of HUD failed. 4 Fatal Issue(s) 0 Warning(s) [in 6 ms]
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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