Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 801 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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