Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (wandaluciaia, AndrewAMD, 1 invisible), 765 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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 | chip programmers | 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