Push All Scripts
This commit is contained in:
3
day_night_script/day_night_script_that_detect_and_do.sol
Normal file
3
day_night_script/day_night_script_that_detect_and_do.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="day_night_script_that_detect_and_do">
|
||||
<Project name="day_night_script_that_detect_and_do" path="day_night_script_that_detect_and_do\day_night_script_that_detect_and_do.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,28 @@
|
||||
// :CATEGORY:Environment
|
||||
// :NAME:day_night_script
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:51
|
||||
// :ID:223
|
||||
// :NUM:309
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// day night script that detect and do stuff.lsl
|
||||
// :CODE:
|
||||
|
||||
|
||||
default {
|
||||
state_entry() {
|
||||
llSetTimerEvent(600);
|
||||
}
|
||||
timer() {
|
||||
vector sun = llGetSunDirection();
|
||||
if(sun.z > 0) {
|
||||
llSetPrimitiveParams([PRIM_MATERIAL,PRIM_MATERIAL_GLASS]);
|
||||
}
|
||||
else {
|
||||
llSetPrimitiveParams([PRIM_MATERIAL,PRIM_MATERIAL_LIGHT]);
|
||||
}
|
||||
}
|
||||
}// END //
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="day_night_script_that_detect_and_do" guid="D70771D3-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D70772CD-6C00-1014-B904-200204C60A89">
|
||||
<Script name="day_night_script_that_detect_and_do_1.lsl" guid="D70788F9-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user