Dynamic 'sundirection' in a map?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Deutsche Dogge
First Lieutenant
Posts: 183
Joined: Wed May 07, 2003 11:50 pm
Location: Quebec
Contact:

Dynamic 'sundirection' in a map?

Post 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?
Image
Click sig to visit the alternation modding community
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I would say no . The shadows etc are compiled in the light stage when the bsp is created .
Image
User avatar
Deutsche Dogge
First Lieutenant
Posts: 183
Joined: Wed May 07, 2003 11:50 pm
Location: Quebec
Contact:

Post 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:
Image
Click sig to visit the alternation modding community
Post Reply