sorry was off on a tangent thinking...

ent_createlayer

you just can;t use it for 'sky' entitys via script. view entitis it works