Page 1 of 1

Dynamic 'sundirection' in a map?

Posted: Wed Dec 01, 2004 9:45 pm
by Deutsche Dogge
Is it 'allowed' and 'possible' to make the sun move in a map by making a script that would change it's direction by making a thread like this and call it at map statup?

Code: Select all

moving_sun:
    while(1)
    {
        //change x, y, z values
        $world sundirection(x,y,z)
        wait(time to wait) 
    }

This is not a valid script but the main idea is there.
Possible?

Posted: Thu Dec 02, 2004 5:54 am
by bdbodger
I would say no . The shadows etc are compiled in the light stage when the bsp is created .

Posted: Thu Dec 02, 2004 1:54 pm
by Deutsche Dogge
OK, that's what i thought by looking at a compiled map in a hex editor, but i had to ask. :wink: