[Noob Scripter] - How to use scripts correctly ?

Hello,

I’m a noob scripter, never done that, but i think it will be very cool to learn about it.

So i have a group of islands as project, il have for the moment the water, and a terrain no modeled that will be one of the islands group.

I would like to put a script a sunlight script to emulate the sun, so i found this :

http://www.unifycommunity.com/wiki/index.php?title=SunLight

But i don’t know if i need to put it in my terrain or in the sun (a directionnal spot light).

I tried to copy paste the script in a .txt in my project folders and use it, i also tried to create a javascript and a Csharp empty script and copypaste the script inside, but it doesn’t work and i donnot know if this script is javascript or csharp.

It create my a NewBehaviourScript and even changing the name he create me this few times, i donnot know how to rename it and after i save it comes empty again.

So if you have advices or tips for my problems i ll be very happy to know more about all scripting techniques (for my poor user level).

MAny thanks.

Best Regards.

++
:wink: :wink: :wink:

Make a new C# script and name it “sunlight”, because the filename has to be the same as the class name, then attach it to the directional light.