i was thinking that sky is not member of entity but simply use ent_morph where sky_1 is entity:
Code:
function change_sky(){
	ent_morph(sky_1,"sky1.tga");
}

on_s = change_sky();