View Full Version : ok, one simple question, but i need a answer fast.
[SF]pjb
04-29-2003, 10:22 AM
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.....
[SF]pjb
04-29-2003, 11:34 AM
(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).]
Stormtrooper
04-29-2003, 03:25 PM
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!!!"
This is really basic stuff....
For(I=0;I<=GetSectorCount();I=I+1)
If(Getsectorflags(I) & Flag)
//Do something....
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');
[SF]pjb
04-30-2003, 01:29 PM
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.....
DogSRoOL
04-30-2003, 02:28 PM
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.
vBulletin® v3.8.6, Copyright ©2000-2010, Jelsoft Enterprises Ltd.