dont know if that would work but
try skycube.flags |= SKY|CUBE|VISIBLE; after/before the line ent_create layer


3333333333