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 (), 18,580 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
NOFLAG1 problem #187980
03/11/08 17:01
03/11/08 17:01
Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
Nagashi Offline OP
Member
Nagashi  Offline OP
Member

Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
I'm trying to set FLAG1 to on, for my skycube entity, so I can disable it in my Minimap(space themed)... I can do this manually in WED and get it to work but I don't usually create a BSP boxes for my sky (on a count of them having to be scaled so big to avoid clipping) but I can't seem to accomplish this with just code... if I can get it to work in WED it stands to reason it will work in code? Any advice would be welcome

Cheers


No rest for the wicked.
__________________________

Ironbound Studios
__________________________
Re: NOFLAG1 problem [Re: Nagashi] #187981
03/16/08 05:37
03/16/08 05:37
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
set(entity,FLAG1);

is that what you mean?

Re: NOFLAG1 problem [Re: Tobias] #187982
03/21/08 00:33
03/21/08 00:33
Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
Nagashi Offline OP
Member
Nagashi  Offline OP
Member

Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
Yes, I suppose I should have included some code… I should know better. This is exactly what I mean, this is my code.
Code:

//First I create a sky cube.
ENTITY* skycube =
{
type = "cariad_cube+6.tga";
flags2 = SKY | CUBE | VISIBLE;
}

//Then I create a second view.
VIEW* camera1_map =
{
layer = 1;
pos_x = 0;
pos_y = 0;
size_x = 320;
size_y = 240;
arc = 35;
aspect = 1;
ambient = 10;
fog = 10;
genius = NULL;
flags = VISIBLE | NOFLAG1;
}

//And last I create a simple function
function turn_me_off()
{
set(skycube,FLAG1);
}


As you can see the code is far from complex. Why will this command not work on sky entities? Or is there no rhyme or reason?


No rest for the wicked.
__________________________

Ironbound Studios
__________________________

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