3 registered members (NewbieZorro, TipmyPip, 1 invisible),
19,045
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
ENTITY* flags
#211227
06/15/08 19:19
06/15/08 19:19
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
Hi, I am currently trying to use a muzzleflash model as an Entity for my gunfire script. The muzzle entity is defined as: ENTITY* ent_muzzle = {
type = "muzzle_2.mdl";
view = camera;
x = 285;
y = -27;
z = -17;
pan = 10;
tilt = 10;
roll = 0;
flags2 = OVERLAY | VISIBLE | BRIGHT;
} But how can I make the model transparent? I was told to make it bright and transparent. But when I use a transparent flag on the entity the engine trows back an error. This is how the model looks like: Does anyone know how to fix this in the script?
The best games are the games you create yourself.
|
|
|
Re: ENTITY* flags
[Re: Quad]
#211230
06/15/08 19:24
06/15/08 19:24
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
Thanks. However, when I use there flags:
flags2 = OVERLAY | VISIBLE | BRIGHT | TRANSLUCENT;
The model is still black...
The best games are the games you create yourself.
|
|
|
Re: ENTITY* flags
[Re: PadMalcom]
#211238
06/15/08 20:04
06/15/08 20:04
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
Hey, your right. I am using now:
flags = BRIGHT | TRANSLUCENT; flags2 = VISIBLE;
Now it works fine. Why can't I put everything in 1 flag? Why are there flags and flags2?
Also, I have another question... Hoe can I make the ENTITY* visible from somewhere else in the script? This doesn't work:
set(ent_muzzle,VISIBLE);
Thanks.
Last edited by NL_3DGS_n00b; 06/15/08 20:25.
The best games are the games you create yourself.
|
|
|
Re: ENTITY* flags
[Re: NL_3DGS_n00b]
#211261
06/15/08 21:31
06/15/08 21:31
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
you can use ent_muzzle.flags |= INVISIBLE; to set it back to invisible.
Strange how VISIBLE is part of flags2 yet INVISIBLE is part of just flags?
ent_muzzle.flags2 &= ~VISIBLE; doesn't work for me either, hmm??
Why did conitec choose to use this method of setting flags. Personally i prefer the c-script method, it is soo easy and more code friendly in my opinion. Does it offer any extra benefits setting flags this way in lite-c then c-script? I can't see any.
Last edited by DJBMASTER; 06/15/08 21:37.
|
|
|
|