aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-21 17:19:07 +1000
committerDavid Walter Seikel2012-01-21 17:19:07 +1000
commitd804733003caab0d79c49fa8b2ef9074015580cc (patch)
tree4fe50606bab02bb6d132a69ccbf055200194ed37
parentChange the test script to the longest MLP script. (diff)
downloadSledjHamr-d804733003caab0d79c49fa8b2ef9074015580cc.zip
SledjHamr-d804733003caab0d79c49fa8b2ef9074015580cc.tar.gz
SledjHamr-d804733003caab0d79c49fa8b2ef9074015580cc.tar.bz2
SledjHamr-d804733003caab0d79c49fa8b2ef9074015580cc.tar.xz
Add more LSL constants and functions.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/constants.lsl53
1 files changed, 49 insertions, 4 deletions
diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl
index 2c17940..4a086ab 100644
--- a/LuaSL/src/constants.lsl
+++ b/LuaSL/src/constants.lsl
@@ -12,6 +12,19 @@ integer LINK_ALL_OTHERS = -2;
12integer LINK_ALL_CHILDREN = -3; 12integer LINK_ALL_CHILDREN = -3;
13integer LINK_THIS = -4; 13integer LINK_THIS = -4;
14 14
15integer INVENTORY_ALL = -1;
16integer INVENTORY_NONE = -1;
17integer INVENTORY_TEXTURE = 0;
18integer INVENTORY_SOUND = 1;
19integer INVENTORY_LANDMARK = 3;
20integer INVENTORY_CLOTHING = 5;
21integer INVENTORY_OBJECT = 6;
22integer INVENTORY_NOTECARD = 7;
23integer INVENTORY_SCRIPT = 10;
24integer INVENTORY_BODYPART = 13;
25integer INVENTORY_ANIMATION = 20;
26integer INVENTORY_GESTURE = 21;
27
15integer TRUE = 1; 28integer TRUE = 1;
16integer FALSE = 0; 29integer FALSE = 0;
17 30
@@ -23,25 +36,57 @@ vector ZERO_VECTOR = <0.0, 0.0, 0.0>;
23 36
24// Functions. 37// Functions.
25 38
26vector llGetPos(){} 39float llPow(float number, float places){}
27rotation llGetRot(){} 40integer llRound(float number){}
41
42
28string llGetObjectDesc(){} 43string llGetObjectDesc(){}
29 llSetObjectDesc(string text){} 44 llSetObjectDesc(string text){}
45string llGetObjectName(){}
46 llSetObjectName(string text){}
30 47
31rotation llEuler2Rot(vector vec){} 48string llGetInventoryName(integer type, integer index){}
49integer llGetInventoryNumber(integer type){}
50integer llGetInventoryType(string name){}
51key llGetNotecardLine(string name, integer index){}
52
53integer llGetFreeMemory(){}
54string llGetScriptName(){}
55 llResetOtherScript(string name){}
56 llResetScript(){}
57 llSetScriptState(string name, integer running){}
58
59vector llGetPos(){}
60rotation llGetRot(){}
32 61
62rotation llEuler2Rot(vector vec){}
63vector llRot2Euler(rotation rot){}
33 64
34string llGetSubString(string text, integer start, integer end){} 65string llGetSubString(string text, integer start, integer end){}
66integer llSubStringIndex(string text, string sub){}
35list llParseString2List(string in, list l, list l1){} 67list llParseString2List(string in, list l, list l1){}
36 68
69float llList2Float(list l, integer index){}
37integer llList2Integer(list l, integer index){} 70integer llList2Integer(list l, integer index){}
71key llList2Key(list l, integer index){}
38string llList2String(list l, integer index){} 72string llList2String(list l, integer index){}
73rotation llList2Rotation(list l, integer index){}
74vector llList2Vector(list l, integer index){}
39list llCSV2List(string text){} 75list llCSV2List(string text){}
76integer llGetListLength(list l){}
77list llListReplaceList(list l, list part, integer start, integer end){}
78list llListSort(list l, integer stride, integer ascending){}
40 79
41key llGetKey(){} 80key llGetKey(){}
81 llSleep(float seconds){}
42 82
43 llSay(integer channel, string text){}
44 llOwnerSay(string text){} 83 llOwnerSay(string text){}
84 llSay(integer channel, string text){}
85 llShout(integer channel, string text){}
86 llWhisper(integer channel, string text){}
45 87
46 llMessageLinked(integer link, integer num, string text, key aKey){} 88 llMessageLinked(integer link, integer num, string text, key aKey){}
47 89
90
91
92