aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-22 00:07:32 +1000
committerDavid Walter Seikel2012-01-22 00:07:32 +1000
commit580374c85d34c603d298738e80e6e6304e9f08cb (patch)
tree2ec555a64daa6e7240ac9a00ec5d3f8247e27938 /LuaSL/src
parentDisable some of the output, and compile every script in the test sim. (diff)
downloadSledjHamr-580374c85d34c603d298738e80e6e6304e9f08cb.zip
SledjHamr-580374c85d34c603d298738e80e6e6304e9f08cb.tar.gz
SledjHamr-580374c85d34c603d298738e80e6e6304e9f08cb.tar.bz2
SledjHamr-580374c85d34c603d298738e80e6e6304e9f08cb.tar.xz
Yet more LSL contstants and functions.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/constants.lsl84
1 files changed, 75 insertions, 9 deletions
diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl
index 4a086ab..ddda654 100644
--- a/LuaSL/src/constants.lsl
+++ b/LuaSL/src/constants.lsl
@@ -5,12 +5,21 @@ float DEG_TO_RAD = PI / 180.0; // 0.01745329252
5float RAD_TO_DEG = 180.0 / PI; // 57.2957795131 5float RAD_TO_DEG = 180.0 / PI; // 57.2957795131
6float SQRT2 = 1.4142135623730950488016887242097; 6float SQRT2 = 1.4142135623730950488016887242097;
7 7
8integer ALL_SIDES = -1; 8integer CHANGED_INVENTORY = 0x001;
9integer LINK_SET = -1; 9integer CHANGED_COLOR = 0x002;
10integer LINK_ROOT = 1; 10integer CHANGED_SHAPE = 0x004;
11integer LINK_ALL_OTHERS = -2; 11integer CHANGED_SCALE = 0x008;
12integer LINK_ALL_CHILDREN = -3; 12integer CHANGED_TEXTURE = 0x010;
13integer LINK_THIS = -4; 13integer CHANGED_LINK = 0x020;
14integer CHANGED_ALLOWED_DROP = 0x040;
15integer CHANGED_OWNER = 0x080;
16integer CHANGED_REGION = 0x100;
17integer CHANGED_TELEPORT = 0x200;
18integer CHANGED_REGION_START = 0x400;
19integer CHANGED_MEDIA = 0x800;
20
21integer DEBUG_CHANNEL = 2147483647;
22integer PUBLIC_CHANNEL = 0;
14 23
15integer INVENTORY_ALL = -1; 24integer INVENTORY_ALL = -1;
16integer INVENTORY_NONE = -1; 25integer INVENTORY_NONE = -1;
@@ -25,6 +34,38 @@ integer INVENTORY_BODYPART = 13;
25integer INVENTORY_ANIMATION = 20; 34integer INVENTORY_ANIMATION = 20;
26integer INVENTORY_GESTURE = 21; 35integer INVENTORY_GESTURE = 21;
27 36
37integer ALL_SIDES = -1;
38integer LINK_SET = -1;
39integer LINK_ROOT = 1;
40integer LINK_ALL_OTHERS = -2;
41integer LINK_ALL_CHILDREN = -3;
42integer LINK_THIS = -4;
43
44integer PERM_ALL = 0x7FFFFFFF;
45integer PERM_COPY = 0x00008000;
46integer PERM_MODIFY = 0x00004000;
47integer PERM_MOVE = 0x00080000;
48integer PERM_TRANSFER = 0x00002000;
49integer MASK_BASE = 0;
50integer MASK_OWNER = 1;
51integer MASK_GROUP = 2;
52integer MASK_EVERYONE = 3;
53integer MASK_NEXT = 4;
54integer PERMISSION_DEBIT = 0x0002;
55integer PERMISSION_TAKE_CONTROLS = 0x0004;
56integer PERMISSION_TRIGGER_ANIMATION = 0x0010;
57integer PERMISSION_ATTACH = 0x0020;
58integer PERMISSION_CHANGE_LINKS = 0x0080;
59integer PERMISSION_TRACK_CAMERA = 0x0400;
60integer PERMISSION_CONTRAL_CAMERA = 0x0800;
61
62integer AGENT = 0x01;
63integer ACTIVE = 0x02;
64integer PASSIVE = 0x04;
65integer SCRIPTED = 0x08;
66
67integer OBJECT_UNKNOWN_DETAIL = -1;
68
28integer TRUE = 1; 69integer TRUE = 1;
29integer FALSE = 0; 70integer FALSE = 0;
30 71
@@ -39,7 +80,13 @@ vector ZERO_VECTOR = <0.0, 0.0, 0.0>;
39float llPow(float number, float places){} 80float llPow(float number, float places){}
40integer llRound(float number){} 81integer llRound(float number){}
41 82
83key llDetectedKey(integer index){}
84key llDetectedGroup(integer index){}
85key llSameGroup(key avatar){}
42 86
87float llGetAlpha(integer side){}
88 llSetAlpha(float alpha, integer side){}
89integer llGetLinkNumber(){}
43string llGetObjectDesc(){} 90string llGetObjectDesc(){}
44 llSetObjectDesc(string text){} 91 llSetObjectDesc(string text){}
45string llGetObjectName(){} 92string llGetObjectName(){}
@@ -52,9 +99,15 @@ key llGetNotecardLine(string name, integer index){}
52 99
53integer llGetFreeMemory(){} 100integer llGetFreeMemory(){}
54string llGetScriptName(){} 101string llGetScriptName(){}
102float llGetTime(){}
55 llResetOtherScript(string name){} 103 llResetOtherScript(string name){}
56 llResetScript(){} 104 llResetScript(){}
105 llResetTime(){}
57 llSetScriptState(string name, integer running){} 106 llSetScriptState(string name, integer running){}
107 llSetTimerEvent(float seconds){}
108
109 llPlaySound(string name, float volume){}
110 llRezObject(string name, vector position, vector velocity, rotation rot, integer channel);
58 111
59vector llGetPos(){} 112vector llGetPos(){}
60rotation llGetRot(){} 113rotation llGetRot(){}
@@ -65,21 +118,36 @@ vector llRot2Euler(rotation rot){}
65string llGetSubString(string text, integer start, integer end){} 118string llGetSubString(string text, integer start, integer end){}
66integer llSubStringIndex(string text, string sub){} 119integer llSubStringIndex(string text, string sub){}
67list llParseString2List(string in, list l, list l1){} 120list llParseString2List(string in, list l, list l1){}
121list llParseStringKeepNulls(string in, list l, list l1){}
68 122
123list llCSV2List(string text){}
124list llDeleteSubList(list l, integer start, integer end){}
125string llList2CSV(list l){}
69float llList2Float(list l, integer index){} 126float llList2Float(list l, integer index){}
70integer llList2Integer(list l, integer index){} 127integer llList2Integer(list l, integer index){}
71key llList2Key(list l, integer index){} 128key llList2Key(list l, integer index){}
129list llList2List(list l, integer start, integer end){}
72string llList2String(list l, integer index){} 130string llList2String(list l, integer index){}
73rotation llList2Rotation(list l, integer index){} 131rotation llList2Rotation(list l, integer index){}
74vector llList2Vector(list l, integer index){} 132vector llList2Vector(list l, integer index){}
75list llCSV2List(string text){}
76integer llGetListLength(list l){} 133integer llGetListLength(list l){}
77list llListReplaceList(list l, list part, integer start, integer end){} 134list llListReplaceList(list l, list part, integer start, integer end){}
78list llListSort(list l, integer stride, integer ascending){} 135list llListSort(list l, integer stride, integer ascending){}
79 136
137list llGetAnimationList(key id){}
80key llGetKey(){} 138key llGetKey(){}
139key llGetOwner(){}
140integer llGetPermissions(){}
141key llGetPermissionsKey(){}
142string llKey2Name(key avatar){}
143 llRequestPermissions(key avatar, integer perms){}
144 llStartAnimation(string anim){}
145 llStopAnimation(string anim){}
146
81 llSleep(float seconds){} 147 llSleep(float seconds){}
82 148
149 llDialog(key avatar, string caption, list arseBackwardsMenu, integer channel){}
150 llListen(integer channel, string name, key id, string msg){}
83 llOwnerSay(string text){} 151 llOwnerSay(string text){}
84 llSay(integer channel, string text){} 152 llSay(integer channel, string text){}
85 llShout(integer channel, string text){} 153 llShout(integer channel, string text){}
@@ -88,5 +156,3 @@ key llGetKey(){}
88 llMessageLinked(integer link, integer num, string text, key aKey){} 156 llMessageLinked(integer link, integer num, string text, key aKey){}
89 157
90 158
91
92