Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → ok, one simple question, but i need a answer fast.
ok, one simple question, but i need a answer fast.
2003-04-29, 7:22 AM #1
how can i serchthru all the sectiors in a level and then save only the ones with a particular flag in a array or something like that? and how can i do teh same with surfaces.

if thats not possible can i serch thre all the sky surfaces in a level and change eatch one, and at the same time surche thru all the sectiors int eh level, and add light to any with a particular flag?

------------------
I am pjb.
Another post......
another moment of my life wasted.....
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-04-29, 8:34 AM #2
(i know how to add light and change amtirials and stuff like that, i alsow know hot to find the flags of a sector or surface, its just the dameddoing all of them i cant think of.

(and if you work out my idea, please dont use it untill i have i want to be the first person to do it ever, but i proebly missed that chance, if i did tell me)

------------------
I am pjb.
Another post......
another moment of my life wasted.....

[This message has been edited by [SF]pjb (edited April 29, 2003).]
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-04-29, 12:25 PM #3
On the second one, do you mean making something change from day to night, (or vice-versa) by changing what material is showing? I think that was don in Imperial Seige on Dierra IV if I remember correctally.

------------------
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "STROOPER WUZ 'ERE!!!"
2003-04-29, 2:13 PM #4
This is really basic stuff....

Code:
For(I=0;I<=GetSectorCount();I=I+1)

If(Getsectorflags(I) & Flag)

//Do something....


Code:
For(I=0;I<=GetSurfaceCount();I=I+1)
If(Getsurfaceflags(I) & Flag)

//Do something...



If you want to do dynamic stuff, for a mod, youll problably want to use Heaps if you want to save a list of values....

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-04-30, 10:29 AM #5
darn? someone has done day and night? well not on this scale!!! he he he.....

thank you, that should work, i just want to check, i can use one of the "unknown/unsed" flags yes? the idea is i dont have to enter all the darned data into cog, it find it for me. he he he....

soon hole world see my power as JK editor.

------------------
I am pjb.
Another post......
another moment of my life wasted.....
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-04-30, 11:28 AM #6
Don't be so modest. [http://forums.massassi.net/html/wink.gif]

------------------
May the forks be with you.
There is a great disturbance in my shorts...
Thank you for reading this post. You owe me $24.95 + S&H.
Catloaf, meet mouseloaf.
My music

↑ Up to the top!