Ok, this doesnt have anything to do with amusement park rides, but I couldnt think of a title....
I recently discovered, to my horror, that 'Getthingcount' doesnt actully count the things in a level. Rather, it reports the 'World things' form the JKL. So, I wrote a cog to do it...
It is a resource cog. Just stick in your ../resource/cog directory and call it 'item_fieldlight.cog' or the like.
Not very useful on its own, but the code might inspire someone...
------------------
Success is the inverse relationship between effort, gain, and loss.
JK editing resources.
I recently discovered, to my horror, that 'Getthingcount' doesnt actully count the things in a level. Rather, it reports the 'World things' form the JKL. So, I wrote a cog to do it...
Code:
# Script to retrieve actual thing count. # # 03/2002 GBK - Packman573@aol.com Symbols Message Activated Message Pulse Int I=0 Local Int C=0 Local Int L=0 Local End Code Activated: If(L==0) { Setpulse(0.05); L=1; } Else If(L==1) { Setpulse(0); L=0; } Stop; Pulse: For(I=0;I<=640;I=I+1) If(Getthingsignature(I) != -1) C = C + 1; Printint(C); C=0; Stop; End
It is a resource cog. Just stick in your ../resource/cog directory and call it 'item_fieldlight.cog' or the like.
Not very useful on its own, but the code might inspire someone...
------------------
Success is the inverse relationship between effort, gain, and loss.
JK editing resources.
And when the moment is right, I'm gonna fly a kite.