I tried to generate valid spawnpoints for entities using serveral methods, but each one often generates unreachable positions, so I have another idea now.
Does anyone know how to save positions (X,Y,Z in each line) and load randomly one of them when I create a sprite?
Something like iOrigin[0] = get_random_position("textfile",0).