0 votes

This is how I initialized the array.

    mapMemory = []
    var helpArray = []

    for i in range(-viewdistance+1, viewdistance-2):
        helpArray.append([])

    for i in range(-viewdistance+1, viewdistance-2):
        mapMemory.append(helpArray.duplicate(true))

So basically its a 2D array containing integer values. I just wanted to ask if hash() works with that kind of structure.

Godot version 3.2.2 custom compiled (I added GodotSteam and Voxeltools but that shouldn't really make a difference)
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.