View Entitytys on 2 views

Posted By: sebbi91

View Entitytys on 2 views - 05/25/10 17:05

Hi guys !
I have 2 views (Splittscreen) and want to get some panels for game controlling!
Is there a way to get an entity on each view?


I tried this but it only appears at the center of the screen and not in each view!

Quote:

ENTITY* inventar_pan_p1=
{
type = "inventar.mdl";
view = camera1;
x = 350;
y = 134;
z = 100;
flags = BRIGHT | TRANSLUCENT|SHOW;
flags2 = VISIBLE;
}


ENTITY* inventar_pan_p2=
{
type = "inventar.mdl";
view = camera2;
x = 350;
y = 134;
z = 100;
flags = BRIGHT | TRANSLUCENT|SHOW;
flags2 = VISIBLE;
}


Any ideas?
Posted By: alibaba

Re: View Entitytys on 2 views - 05/25/10 17:18

you have to redefine the x and y positions, because both positions are identical, so they are at the same position.
Posted By: sebbi91

Re: View Entitytys on 2 views - 05/25/10 17:25

but I say with : "view=camera1 "
that it should be in the 1st view,doesnt?
What the hell is the meaning of view=... ?
Posted By: Progger

Re: View Entitytys on 2 views - 05/25/10 17:31

no you should use layer
the one with the lower layer is on top
layer=1;//for camera1
layer=2;//for camera2
© 2024 lite-C Forums