Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
ENTITY* flags #211227
06/15/08 19:19
06/15/08 19:19
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline 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:

Code:
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: NL_3DGS_n00b] #211228
06/15/08 19:22
06/15/08 19:22
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
transparent flag is now TRANSLUCENT.


3333333333
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 Offline OP
Member
NL_3DGS_n00b  Offline 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: NL_3DGS_n00b] #211237
06/15/08 20:02
06/15/08 20:02
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Not every flag has to be set in "flags2", I think. Some still are defined in "flags".

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 Offline OP
Member
NL_3DGS_n00b  Offline 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] #211243
06/15/08 20:42
06/15/08 20:42
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
try ent_muzzle.flags2 |= VISIBLE;

Re: ENTITY* flags [Re: DJBMASTER] #211252
06/15/08 20:54
06/15/08 20:54
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Works fine.
And how can I clear the visible flag?


The best games are the games you create yourself.
Re: ENTITY* flags [Re: NL_3DGS_n00b] #211258
06/15/08 21:08
06/15/08 21:08
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
ent_muzzle.flags2 &= ~VISIBLE;


Last edited by Quadraxas; 06/15/08 21:09.

3333333333
Re: ENTITY* flags [Re: Quad] #211259
06/15/08 21:11
06/15/08 21:11
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
I dont get an error, but the ENTITY* won't disappear...


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 Offline
Serious User
DJBMASTER  Offline
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.
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1