Posted By: upsidedownman
Entities and layers - 11/06/08 20:56
Ok so i was trying to put entities on top of a panel. The panels layer is 0 and the entity layers is 2.
But the entity is still appearing under the panel??? Any ideas. Why.
Code:
void test()
{
my.layer = 2;
}
PANEL* main_pan =
{
bmap = "buttonholder.jpg";
pos_x = 0;
pos_y = 0;
layer = 0;
flags =VISIBLE;
size_x = 500;
size_y = 500;
}
function main()
{
max_entities = 3000;
video_mode = 7;
level_load ("level.wmb");
wait (2);
camera.x = 832.000;
camera.y = 256;
camera.z = 1648.000;
camera.pan = 271;
camera.tilt = -84;
ent_create("test.mdl",vector(0,0,10),test)
}
But the entity is still appearing under the panel??? Any ideas. Why.