diff options
author | David Walter Seikel | 2012-01-22 00:07:32 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-22 00:07:32 +1000 |
commit | 580374c85d34c603d298738e80e6e6304e9f08cb (patch) | |
tree | 2ec555a64daa6e7240ac9a00ec5d3f8247e27938 /LuaSL/src | |
parent | Disable some of the output, and compile every script in the test sim. (diff) | |
download | SledjHamr-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.lsl | 84 |
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 | |||
5 | float RAD_TO_DEG = 180.0 / PI; // 57.2957795131 | 5 | float RAD_TO_DEG = 180.0 / PI; // 57.2957795131 |
6 | float SQRT2 = 1.4142135623730950488016887242097; | 6 | float SQRT2 = 1.4142135623730950488016887242097; |
7 | 7 | ||
8 | integer ALL_SIDES = -1; | 8 | integer CHANGED_INVENTORY = 0x001; |
9 | integer LINK_SET = -1; | 9 | integer CHANGED_COLOR = 0x002; |
10 | integer LINK_ROOT = 1; | 10 | integer CHANGED_SHAPE = 0x004; |
11 | integer LINK_ALL_OTHERS = -2; | 11 | integer CHANGED_SCALE = 0x008; |
12 | integer LINK_ALL_CHILDREN = -3; | 12 | integer CHANGED_TEXTURE = 0x010; |
13 | integer LINK_THIS = -4; | 13 | integer CHANGED_LINK = 0x020; |
14 | integer CHANGED_ALLOWED_DROP = 0x040; | ||
15 | integer CHANGED_OWNER = 0x080; | ||
16 | integer CHANGED_REGION = 0x100; | ||
17 | integer CHANGED_TELEPORT = 0x200; | ||
18 | integer CHANGED_REGION_START = 0x400; | ||
19 | integer CHANGED_MEDIA = 0x800; | ||
20 | |||
21 | integer DEBUG_CHANNEL = 2147483647; | ||
22 | integer PUBLIC_CHANNEL = 0; | ||
14 | 23 | ||
15 | integer INVENTORY_ALL = -1; | 24 | integer INVENTORY_ALL = -1; |
16 | integer INVENTORY_NONE = -1; | 25 | integer INVENTORY_NONE = -1; |
@@ -25,6 +34,38 @@ integer INVENTORY_BODYPART = 13; | |||
25 | integer INVENTORY_ANIMATION = 20; | 34 | integer INVENTORY_ANIMATION = 20; |
26 | integer INVENTORY_GESTURE = 21; | 35 | integer INVENTORY_GESTURE = 21; |
27 | 36 | ||
37 | integer ALL_SIDES = -1; | ||
38 | integer LINK_SET = -1; | ||
39 | integer LINK_ROOT = 1; | ||
40 | integer LINK_ALL_OTHERS = -2; | ||
41 | integer LINK_ALL_CHILDREN = -3; | ||
42 | integer LINK_THIS = -4; | ||
43 | |||
44 | integer PERM_ALL = 0x7FFFFFFF; | ||
45 | integer PERM_COPY = 0x00008000; | ||
46 | integer PERM_MODIFY = 0x00004000; | ||
47 | integer PERM_MOVE = 0x00080000; | ||
48 | integer PERM_TRANSFER = 0x00002000; | ||
49 | integer MASK_BASE = 0; | ||
50 | integer MASK_OWNER = 1; | ||
51 | integer MASK_GROUP = 2; | ||
52 | integer MASK_EVERYONE = 3; | ||
53 | integer MASK_NEXT = 4; | ||
54 | integer PERMISSION_DEBIT = 0x0002; | ||
55 | integer PERMISSION_TAKE_CONTROLS = 0x0004; | ||
56 | integer PERMISSION_TRIGGER_ANIMATION = 0x0010; | ||
57 | integer PERMISSION_ATTACH = 0x0020; | ||
58 | integer PERMISSION_CHANGE_LINKS = 0x0080; | ||
59 | integer PERMISSION_TRACK_CAMERA = 0x0400; | ||
60 | integer PERMISSION_CONTRAL_CAMERA = 0x0800; | ||
61 | |||
62 | integer AGENT = 0x01; | ||
63 | integer ACTIVE = 0x02; | ||
64 | integer PASSIVE = 0x04; | ||
65 | integer SCRIPTED = 0x08; | ||
66 | |||
67 | integer OBJECT_UNKNOWN_DETAIL = -1; | ||
68 | |||
28 | integer TRUE = 1; | 69 | integer TRUE = 1; |
29 | integer FALSE = 0; | 70 | integer FALSE = 0; |
30 | 71 | ||
@@ -39,7 +80,13 @@ vector ZERO_VECTOR = <0.0, 0.0, 0.0>; | |||
39 | float llPow(float number, float places){} | 80 | float llPow(float number, float places){} |
40 | integer llRound(float number){} | 81 | integer llRound(float number){} |
41 | 82 | ||
83 | key llDetectedKey(integer index){} | ||
84 | key llDetectedGroup(integer index){} | ||
85 | key llSameGroup(key avatar){} | ||
42 | 86 | ||
87 | float llGetAlpha(integer side){} | ||
88 | llSetAlpha(float alpha, integer side){} | ||
89 | integer llGetLinkNumber(){} | ||
43 | string llGetObjectDesc(){} | 90 | string llGetObjectDesc(){} |
44 | llSetObjectDesc(string text){} | 91 | llSetObjectDesc(string text){} |
45 | string llGetObjectName(){} | 92 | string llGetObjectName(){} |
@@ -52,9 +99,15 @@ key llGetNotecardLine(string name, integer index){} | |||
52 | 99 | ||
53 | integer llGetFreeMemory(){} | 100 | integer llGetFreeMemory(){} |
54 | string llGetScriptName(){} | 101 | string llGetScriptName(){} |
102 | float 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 | ||
59 | vector llGetPos(){} | 112 | vector llGetPos(){} |
60 | rotation llGetRot(){} | 113 | rotation llGetRot(){} |
@@ -65,21 +118,36 @@ vector llRot2Euler(rotation rot){} | |||
65 | string llGetSubString(string text, integer start, integer end){} | 118 | string llGetSubString(string text, integer start, integer end){} |
66 | integer llSubStringIndex(string text, string sub){} | 119 | integer llSubStringIndex(string text, string sub){} |
67 | list llParseString2List(string in, list l, list l1){} | 120 | list llParseString2List(string in, list l, list l1){} |
121 | list llParseStringKeepNulls(string in, list l, list l1){} | ||
68 | 122 | ||
123 | list llCSV2List(string text){} | ||
124 | list llDeleteSubList(list l, integer start, integer end){} | ||
125 | string llList2CSV(list l){} | ||
69 | float llList2Float(list l, integer index){} | 126 | float llList2Float(list l, integer index){} |
70 | integer llList2Integer(list l, integer index){} | 127 | integer llList2Integer(list l, integer index){} |
71 | key llList2Key(list l, integer index){} | 128 | key llList2Key(list l, integer index){} |
129 | list llList2List(list l, integer start, integer end){} | ||
72 | string llList2String(list l, integer index){} | 130 | string llList2String(list l, integer index){} |
73 | rotation llList2Rotation(list l, integer index){} | 131 | rotation llList2Rotation(list l, integer index){} |
74 | vector llList2Vector(list l, integer index){} | 132 | vector llList2Vector(list l, integer index){} |
75 | list llCSV2List(string text){} | ||
76 | integer llGetListLength(list l){} | 133 | integer llGetListLength(list l){} |
77 | list llListReplaceList(list l, list part, integer start, integer end){} | 134 | list llListReplaceList(list l, list part, integer start, integer end){} |
78 | list llListSort(list l, integer stride, integer ascending){} | 135 | list llListSort(list l, integer stride, integer ascending){} |
79 | 136 | ||
137 | list llGetAnimationList(key id){} | ||
80 | key llGetKey(){} | 138 | key llGetKey(){} |
139 | key llGetOwner(){} | ||
140 | integer llGetPermissions(){} | ||
141 | key llGetPermissionsKey(){} | ||
142 | string 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 | |||