Announcement

Collapse
No announcement yet.

Arrays get "destroyed" while adding something.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Arrays get "destroyed" while adding something.

    This does not happen everytime, but sometimes.

    Normally i would have an Array with

    A
    B
    C
    D
    E (This is the last added item)

    but sometimes this happens:

    None
    None
    None
    None
    E (This is the last added item)

    everything that was added before that item gets "None'd"...

    This is the "Add"-Node (not much to do wrong here...)


    And this is what sometimes happens ingame:


    Parts of the array just get replaced with "None".

    Explanation what i am trying to do there: Create an Array of actors that i removed from the game, so that they won't spawn again when i load the game. (I add themn BEFORE i remove them from the game...)
    Last edited by Yaeko; 05-26-2016, 06:25 AM.

    #2
    The keyword is "sometimes" meaning that there is something wrong with your setup and this picture practically provides no information of how and when the arrays are created. Check the the logic and order of execution of your nodes. If the object doesn't exist it will also give you none.

    Comment


      #3
      how and when the arrays are created.
      The Array was created by me, and is already there when the game starts.

      but here you go:

      That is everything that i do with this array (except from saving it... but this works) I just add stuff to it, the "Print String-Loop" is only there because i was searching for the problem.

      Last edited by Yaeko; 05-26-2016, 06:21 AM.

      Comment


        #4
        Does it work when you remove the branch?

        Comment

        Working...
        X