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
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 16,707 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
How to hide a new created entity? #338546
08/18/10 22:33
08/18/10 22:33
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Hello, sometimes one find some incredible problems :-(

I need to load an entity (MDL) but I don't want to show it immediately.
I used the following code:

Code:
ENTITY* wheelShadow = ent_create("buggy.mdl", vector(30, -35, -15), NULL);
wheelShadow.flags2 &=~SHOW;
wheelShadow.flags &=~SHOW;



The problem is the entity is always shown in the screen! Even if I eliminated SHOW flag. I even tried:

Code:
ENTITY* wheelShadow = ent_create("buggy.mdl", vector(30, -35, -15), NULL);
wheelShadow.flags2 = 0;
wheelShadow.flags = 0;



But I got the same result. Can you help me? Why I cannot hide the entity?

Thank you for your help!

Re: How to hide a new created entity? [Re: Alessandro] #338547
08/18/10 22:35
08/18/10 22:35
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Code:
wheelShadow = ent_create("buggy.mdl", vector(30, -35, -15), NULL);
set(wheelShadow,INVISIBLE);



Re: How to hide a new created entity? [Re: DJBMASTER] #338548
08/18/10 22:44
08/18/10 22:44
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Thank you!
I was in the wrong way since in the manual and it underlines that INVISIBLE flag is used for LEVEL ENTITIES!

Thank you again for your help!


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