Add new files

This commit is contained in:
Fred Beckhusen
2019-03-17 23:20:45 -05:00
parent 03fe71c66d
commit 176be29fca
40 changed files with 1868 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
// :CATEGORY:Scripting
// :AUTHOR:Justin Clark-Casey (justincc)
// :KEYWORDS:Opensim
// :REV:1
// :WORLD:Opensim
// :DESCRIPTION:
// One of many tests for Opensim
// :CODE:
//Rez an object, and drop this script in it.
//This will launch it at the owner.
default
{
state_entry()
{
list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]);
if(p != [])
{
llSetStatus(STATUS_PHYSICS, TRUE);
vector pos = llList2Vector(p, 0);
vector direction = llVecNorm(pos - llGetPos());
llApplyImpulse(direction * 100, 0);
}
}
}