2 registered members (TedMar, AndrewAMD),
1,344
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
VIEW.genius don't work
#257666
03/24/09 16:45
03/24/09 16:45
|
Joined: Jun 2008
Posts: 151 Ukraine
XD1v0
OP
Member
|
OP
Member
Joined: Jun 2008
Posts: 151
Ukraine
|
Hi everybody, I have problem of using GENIUS pointer, I read in manual that if set GENIUS to any entity, this entity become invisible in the VIEW, but I try and nothing happened, all entites a visible in both VIEWs,that I doing wrong?
#include <acknex.h>
#include <default.c>
VIEW* test1 =
{
layer = 1;
size_x = 300;
size_y = 300;
flags = VISIBLE;
}
void main ()
{
ENTITY* ent;
level_load(0);
ent = ent_create("capsule.mdl",vector(100,30,0),NULL);
test1.genius = ent;
// After I pointed GENIUS to the *ent, it should not be visible
// in the test1, but for some reason this does not happen :(
ent.parent = ent_create("car_mini.mdl",vector(50,0,0),NULL);
vec_set(camera.x,vector(-100,42,0));// set position for camera
}
A7 Commercial Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
|
|
|
Re: VIEW.genius don't work
[Re: XD1v0]
#257740
03/25/09 10:05
03/25/09 10:05
|
Joined: Jul 2008
Posts: 1,178 England
MrGuest
Serious User
|
Serious User
Joined: Jul 2008
Posts: 1,178
England
|
Hey, That's only for c-script use VIEW* test1 =
{
layer = 1;
size_x = 300;
size_y = 300;
flags = NOFLAG1 | VISIBLE;
}
ENTITY* ent;
void main ()
{
level_load(0);
wait(1);
ent = ent_create("capsule.mdl",vector(100,30,0),NULL);
wait(1);
test1.genius = ent;
// After I pointed GENIUS to the *ent, it should not be visible
// in the test1, but for some reason this does not happen :(
set(ent, FLAG1);
ent.parent = ent_create("car_mini.mdl",vector(50,0,0),NULL);
vec_set(camera.x,vector(-100,42,0));// set position for camera
} Hope this helps
|
|
|
Re: VIEW.genius don't work
[Re: MrGuest]
#257757
03/25/09 11:26
03/25/09 11:26
|
Joined: Jun 2008
Posts: 151 Ukraine
XD1v0
OP
Member
|
OP
Member
Joined: Jun 2008
Posts: 151
Ukraine
|
I did not know about this, thanks MrGuest. But I wonder, whether there is a way to render only one entity for each VIEW (5 entity -> 5 VIEWs) I can not use FLAG1 for this.I would be glad to any ideas.
A7 Commercial Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
|
|
|
|