I'm using A6.6

When I compile my game from WED all is fine.

But when I publish it, the sprites with the action below all fade to alpha 0 immediately after it loads. Poof! Gone!

Code:
action act_obj_set
{	
	ent_obj = me;
	while(!player){wait(1);}
	my.collision_range = 400;
	my.fade_dist = 500; //1000;
	my.fade_speed_fac = 0.01;
	vec_set(d3d_lodfactor,vector(500,650,800));
	my.passable = on;
	my.polygon = on;
	my.alpha = 100;
	vec_set (temp, my.pos);
	temp.z -= 2000;
	my.z -= c_trace (my.pos, temp, ignore_me + ignore_you + ignore_sprites + ignore_passable) + my.z_adjustment; 
}