Files
LSL-Scripts/Script Tests/Script tests/Object/llAtan2.lsl
Fred Beckhusen 0317121fc6 new stuff
2019-04-03 20:47:22 -05:00

21 lines
461 B
Plaintext

// :CATEGORY:Scripting
// :AUTHOR:Justin Clark-Casey (justincc)
// :KEYWORDS:Opensim
// :REV:1
// :WORLD:Opensim
// :DESCRIPTION:
// One of many tests for Opensim
// :CODE:
default
{
state_entry()
{
float num1 = llFrand(100.0);
float num2 = llFrand(100.0);
llOwnerSay("y = " + (string)num1);
llOwnerSay("x = " + (string)num2);
llOwnerSay("The tangent of y divided by x is " + (string)llAtan2(num1, num2));
}
}