Right, so I decided to dig up this stale Space Noxx II level that I never finished, and I'm trying to attach my sun light to my skybox in some fashion. Actually attaching it didn't make it rotate around the pivot point of the skybox, so I tried RotatePivot() instead. It doesn't work either... My template is basically a ghost with light and 0x1 thingflags, and move=path as well as the needed frames.
Inside the pulse, the position of the sun is printed out, but it never changes (which is clearly visible while playing).
What could be wrong?
------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Inside the pulse, the position of the sun is printed out, but it never changes (which is clearly visible while playing).
Code:
# Jedi Knight COG Script # # SunAttach.COG # # Created by Emon. E-Mail: emon1337@yahoo.com - ICQ: 35960628 # Feel free to use this COG as long as credit is given in the readme file. # # Originally attached sun to starbox, discarded in favor of pivot rotation. # # # This COG is not supported by LucasArts Entertainment Co. symbols thing Sun flex RotateTime message startup message pulse end # ======================================================================================== code startup: SetPulse(RotateTime); Return; pulse: PrintVector(GetThingPos(Sun)); RotatePivot(Sun, 0, RotateTime); Return; end
What could be wrong?
------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.