mirror of
https://github.com/opensim/opensim.git
synced 2026-06-06 11:25:46 +08:00
First basic test script now works in the jvm scripting engine.
For it to work you need to have a java sdk installed and the javac.exe somewhere in the environment Path variable. Then To test, copy the text from bin/script1.text into a note card and then add that note to a prim.
This commit is contained in:
36
bin/OpenSimAPI.java
Normal file
36
bin/OpenSimAPI.java
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
public class OpenSimAPI {
|
||||
|
||||
public static int GetEntityID()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int GetRandomAvatarID()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static float GetEntityPositionX(int id)
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public static float GetEntityPositionY(int id)
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public static float GetEntityPositionZ(int id)
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public static void SetEntityPosition(int id, float x, float y, float z)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user