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
0 registered members (), 16,302 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
Turn off entities? #324540
05/21/10 15:51
05/21/10 15:51
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Is it possible to turn off entities, not remove them, but turn them off until they are needed again???

Any help would be great!!!!!

D.

Re: Turn off entities? [Re: Darkmatters] #324541
05/21/10 15:55
05/21/10 15:55
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
What do you want to do? You can make them invisible with set(entity pointer,INVISIBLE) or maybe you are looking for the DYNAMIC-flag.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Turn off entities? [Re: Darkmatters] #324543
05/21/10 15:57
05/21/10 15:57
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
my.flags |= INVISIBLE;
set(my,INVISIBLE); // does the same thing as the line above, chose what you like more

Re: Turn off entities? [Re: Lukas] #324544
05/21/10 16:14
05/21/10 16:14
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Thanks for your quick response guys, yeah I get the "INVISIBLE" thing, or perhaps the "HIDE" but they still take up processor time don't they???? or am I mistaken??

I just thought it would be good to turn them off and on when required, but it seems that its not possible???

Thanks

Re: Turn off entities? [Re: Darkmatters] #324545
05/21/10 16:33
05/21/10 16:33
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
you can also manually store their properties, and destroy
them.

When they are needed, you create new ones with the old
properties.

This can lead to null-pointer errors though.

If you need this jsut for ambient objects in a scene
(like grass, trees etc) its better to use the LOD methods.

Re: Turn off entities? [Re: Damocles_] #324568
05/21/10 19:20
05/21/10 19:20
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Well the INVISIBLE seems to work ok actually, frees up the K's.... thanks guys....

D.


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