Add new files
This commit is contained in:
22
Script Tests/Script tests/Object/llSetRot.lsl
Normal file
22
Script Tests/Script tests/Object/llSetRot.lsl
Normal file
@@ -0,0 +1,22 @@
|
||||
// :CATEGORY:Scripting
|
||||
// :AUTHOR:Justin Clark-Casey (justincc)
|
||||
// :KEYWORDS:Opensim
|
||||
// :REV:1
|
||||
// :WORLD:Opensim
|
||||
// :DESCRIPTION:
|
||||
// One of many tests for Opensim
|
||||
// :CODE:
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llOwnerSay("Touch me");
|
||||
}
|
||||
touch_start(integer total_number)
|
||||
{
|
||||
rotation Y_10 = llEuler2Rot( < 0, 0, 30 * DEG_TO_RAD > );
|
||||
rotation newRotation = llGetRot() * Y_10;
|
||||
llSetRot( newRotation );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user