diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LSL.lua | 58 |
1 files changed, 51 insertions, 7 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua index 0f5e9ec..6f627e8 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua | |||
@@ -923,8 +923,14 @@ local constants = | |||
923 | } | 923 | } |
924 | 924 | ||
925 | 925 | ||
926 | -- LSL animation overrider functions | ||
927 | newFunc("string", "llGetAnimationOverride", "string anim_state") | ||
928 | newFunc("", "llResetAnimationOverride", "string anim_state") | ||
929 | newFunc("", "llSetAnimationOverride", "string anim_state", "string anim") | ||
930 | |||
926 | -- LSL avatar functions | 931 | -- LSL avatar functions |
927 | newFunc("", "llAttachToAvatar", "integer attachment") | 932 | newFunc("", "llAttachToAvatar", "integer attachment") |
933 | newFunc("", "llAttachToAvatarTemp", "integer attachment") | ||
928 | newFunc("key", "llAvatarOnSitTarget") | 934 | newFunc("key", "llAvatarOnSitTarget") |
929 | newFunc("key", "llAvatarOnLinkSitTarget", "integer linknum") | 935 | newFunc("key", "llAvatarOnLinkSitTarget", "integer linknum") |
930 | newFunc("", "llClearCameraParams") | 936 | newFunc("", "llClearCameraParams") |
@@ -964,6 +970,7 @@ newFunc("", "llTakeControls", "integer controls", "integer accept", "integer pa | |||
964 | newFunc("", "llTeleportAgentHome", "string agent") | 970 | newFunc("", "llTeleportAgentHome", "string agent") |
965 | newFunc("", "llTeleportAgent", "string agent", "string simname", "vector pos", "vector lookAt") | 971 | newFunc("", "llTeleportAgent", "string agent", "string simname", "vector pos", "vector lookAt") |
966 | newFunc("", "llTeleportAgentGlobalCoords", "string agent", "vector global", "vector pos", "vector lookAt") | 972 | newFunc("", "llTeleportAgentGlobalCoords", "string agent", "vector global", "vector pos", "vector lookAt") |
973 | newFunc("key", "llTransferLindenDollars", "key destination", "integer amount") | ||
967 | newFunc("", "llUnSit", "key avatar") | 974 | newFunc("", "llUnSit", "key avatar") |
968 | 975 | ||
969 | -- LSL collision / detect / sensor functions | 976 | -- LSL collision / detect / sensor functions |
@@ -1024,6 +1031,7 @@ newFunc("string", "llRequestSecureURL") | |||
1024 | newFunc("key", "llRequestURL") | 1031 | newFunc("key", "llRequestURL") |
1025 | newFunc("", "llSay", "integer channel", "string text") | 1032 | newFunc("", "llSay", "integer channel", "string text") |
1026 | newFunc("key", "llSendRemoteData", "string channel", "string dest", "integer idata", "string sdata") | 1033 | newFunc("key", "llSendRemoteData", "string channel", "string dest", "integer idata", "string sdata") |
1034 | newFunc("", "llSetContentType", "key request_id", "integer content_type") | ||
1027 | newFunc("", "llSetPrimURL", "string url") | 1035 | newFunc("", "llSetPrimURL", "string url") |
1028 | newFunc("", "llShout", "integer channel", "string text") | 1036 | newFunc("", "llShout", "integer channel", "string text") |
1029 | newFunc("", "llTextBox", "string avatar", "string message", "integer chat_channel") | 1037 | newFunc("", "llTextBox", "string avatar", "string message", "integer chat_channel") |
@@ -1047,12 +1055,20 @@ newFunc("", "llRezAtRoot", "string name", "vector position", "vector velocity", | |||
1047 | newFunc("", "llRezObject", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") | 1055 | newFunc("", "llRezObject", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") |
1048 | newFunc("", "llSetInventoryPermMask", "string item", "integer mask", "integer value") | 1056 | newFunc("", "llSetInventoryPermMask", "string item", "integer mask", "integer value") |
1049 | 1057 | ||
1058 | -- LSL JSON functions | ||
1059 | newFunc("list", "llJson2List", "string src") | ||
1060 | newFunc("string", "llJsonGetValue", "string json", "list specifiers") | ||
1061 | newFunc("string", "llJsonSetValue", "string json", "list specifiers", "string value") | ||
1062 | newFunc("string", "llJsonValueType", "string json", "list specifiers") | ||
1063 | newFunc("string", "llList2Json", "string Type", "list values") | ||
1064 | |||
1050 | -- LSL land / parcel / plot / region / sim / weather functions | 1065 | -- LSL land / parcel / plot / region / sim / weather functions |
1051 | newFunc("", "llAddToLandBanList", "string avatar", "float hours") | 1066 | newFunc("", "llAddToLandBanList", "string avatar", "float hours") |
1052 | newFunc("", "llAddToLandPassList", "string avatar", "float hours") | 1067 | newFunc("", "llAddToLandPassList", "string avatar", "float hours") |
1053 | newFunc("float", "llCloud", "vector offset") | 1068 | newFunc("float", "llCloud", "vector offset") |
1054 | newFunc("integer", "llEdgeOfWorld", "vector pos", "vector dir") | 1069 | newFunc("integer", "llEdgeOfWorld", "vector pos", "vector dir") |
1055 | newFunc("", "llEjectFromLand", "string pest") | 1070 | newFunc("", "llEjectFromLand", "string pest") |
1071 | newFunc("string", "llGetEnv", "string name") | ||
1056 | newFunc("key", "llGetLandOwnerAt", "vector pos") | 1072 | newFunc("key", "llGetLandOwnerAt", "vector pos") |
1057 | newFunc("list", "llGetParcelDetails", "vector pos", "list param") | 1073 | newFunc("list", "llGetParcelDetails", "vector pos", "list param") |
1058 | newFunc("integer", "llGetParcelFlags", "vector pos") | 1074 | newFunc("integer", "llGetParcelFlags", "vector pos") |
@@ -1065,6 +1081,7 @@ newFunc("integer", "llGetRegionFlags") | |||
1065 | newFunc("float", "llGetRegionFPS") | 1081 | newFunc("float", "llGetRegionFPS") |
1066 | newFunc("string", "llGetRegionName") | 1082 | newFunc("string", "llGetRegionName") |
1067 | newFunc("float", "llGetRegionTimeDilation") | 1083 | newFunc("float", "llGetRegionTimeDilation") |
1084 | newFunc("float", "llGetSimStats", "integer stat_type") | ||
1068 | newFunc("string", "llGetSimulatorHostname") | 1085 | newFunc("string", "llGetSimulatorHostname") |
1069 | newFunc("vector", "llGetSunDirection") | 1086 | newFunc("vector", "llGetSunDirection") |
1070 | newFunc("float", "llGround", "vector offset") | 1087 | newFunc("float", "llGround", "vector offset") |
@@ -1072,6 +1089,7 @@ newFunc("vector", "llGroundContour", "vector offset") | |||
1072 | newFunc("vector", "llGroundNormal", "vector offset") | 1089 | newFunc("vector", "llGroundNormal", "vector offset") |
1073 | newFunc("", "llGroundRepel", "float height", "integer water", "float tau") | 1090 | newFunc("", "llGroundRepel", "float height", "integer water", "float tau") |
1074 | newFunc("vector", "llGroundSlope", "vector offset") | 1091 | newFunc("vector", "llGroundSlope", "vector offset") |
1092 | newFunc("integer", "llManageEstateAccess", "integer action", "key avatar") | ||
1075 | newFunc("", "llMapDestination", "string simname", "vector pos", "vector look_at") | 1093 | newFunc("", "llMapDestination", "string simname", "vector pos", "vector look_at") |
1076 | newFunc("", "llModifyLand", "integer action", "integer brush") | 1094 | newFunc("", "llModifyLand", "integer action", "integer brush") |
1077 | newFunc("integer", "llOverMyLand", "string id") | 1095 | newFunc("integer", "llOverMyLand", "string id") |
@@ -1080,6 +1098,8 @@ newFunc("", "llRemoveFromLandPassList", "string avatar") | |||
1080 | newFunc("key", "llRequestSimulatorData", "string simulator", "integer data") | 1098 | newFunc("key", "llRequestSimulatorData", "string simulator", "integer data") |
1081 | newFunc("", "llResetLandBanList") | 1099 | newFunc("", "llResetLandBanList") |
1082 | newFunc("", "llResetLandPassList") | 1100 | newFunc("", "llResetLandPassList") |
1101 | newFunc("integer", "llReturnObjectsByID", "list objects") | ||
1102 | newFunc("integer", "llReturnObjectsByOwner", "key owner", "integer scope") | ||
1083 | newFunc("float", "llWater", "vector offset") | 1103 | newFunc("float", "llWater", "vector offset") |
1084 | newFunc("vector", "llWind", "vector offset") | 1104 | newFunc("vector", "llWind", "vector offset") |
1085 | 1105 | ||
@@ -1098,7 +1118,10 @@ newFunc("key", "llGetKey") | |||
1098 | newFunc("key", "llGetLinkKey", "integer linknum") | 1118 | newFunc("key", "llGetLinkKey", "integer linknum") |
1099 | newFunc("string", "llGetLinkName", "integer linknum") | 1119 | newFunc("string", "llGetLinkName", "integer linknum") |
1100 | newFunc("integer", "llGetLinkNumber") | 1120 | newFunc("integer", "llGetLinkNumber") |
1121 | newFunc("integer", "llGetLinkNumberOfSides", "integer link") | ||
1101 | newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules") | 1122 | newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules") |
1123 | newFunc("float", "llGetMaxScaleFactor") | ||
1124 | newFunc("float", "llGetMinScaleFactor") | ||
1102 | newFunc("integer", "llGetNumberOfPrims") | 1125 | newFunc("integer", "llGetNumberOfPrims") |
1103 | newFunc("integer", "llGetNumberOfSides") | 1126 | newFunc("integer", "llGetNumberOfSides") |
1104 | newFunc("string", "llGetObjectDesc") | 1127 | newFunc("string", "llGetObjectDesc") |
@@ -1109,9 +1132,7 @@ newFunc("integer", "llGetObjectPrimCount", "string object_id") | |||
1109 | newFunc("vector", "llGetOmega") | 1132 | newFunc("vector", "llGetOmega") |
1110 | newFunc("key", "llGetOwner") | 1133 | newFunc("key", "llGetOwner") |
1111 | newFunc("key", "llGetOwnerKey", "string id") | 1134 | newFunc("key", "llGetOwnerKey", "string id") |
1112 | newFunc("integer", "llGetLinkNumberOfSides", "integer link") | 1135 | newFunc("list", "llGetPhysicsMaterial") |
1113 | newFunc("list", "llGetLinkMedia", "integer link", "integer face", "list rules") | ||
1114 | newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules") | ||
1115 | newFunc("list", "llGetPrimitiveParams", "list rules") | 1136 | newFunc("list", "llGetPrimitiveParams", "list rules") |
1116 | newFunc("integer", "llGetStatus", "integer status") | 1137 | newFunc("integer", "llGetStatus", "integer status") |
1117 | newFunc("", "llLinkParticleSystem", "integer linknum", "list rules") | 1138 | newFunc("", "llLinkParticleSystem", "integer linknum", "list rules") |
@@ -1125,6 +1146,7 @@ newFunc("", "llMoveToTarget", "vector target", "float tau") | |||
1125 | newFunc("", "llParticleSystem", "list rules") | 1146 | newFunc("", "llParticleSystem", "list rules") |
1126 | newFunc("", "llPassTouches", "integer pass") | 1147 | newFunc("", "llPassTouches", "integer pass") |
1127 | newFunc("", "llRotLookAt", "rotation target", "float strength", "float damping") | 1148 | newFunc("", "llRotLookAt", "rotation target", "float strength", "float damping") |
1149 | newFunc("integer", "llScaleByFactor", "float scaling_factor") | ||
1128 | newFunc("", "llSetClickAction", "integer action") | 1150 | newFunc("", "llSetClickAction", "integer action") |
1129 | newFunc("", "llSetDamage", "float damage") | 1151 | newFunc("", "llSetDamage", "float damage") |
1130 | newFunc("", "llSetHoverHeight", "float height", "integer water", "float tau") | 1152 | newFunc("", "llSetHoverHeight", "float height", "integer water", "float tau") |
@@ -1134,6 +1156,7 @@ newFunc("", "llSetObjectDesc", "string text") | |||
1134 | newFunc("", "llSetObjectName", "string text") | 1156 | newFunc("", "llSetObjectName", "string text") |
1135 | newFunc("", "llSetObjectPermMask", "integer mask", "integer value") | 1157 | newFunc("", "llSetObjectPermMask", "integer mask", "integer value") |
1136 | newFunc("", "llSetPayPrice", "integer price", "list quick_pay_buttons") | 1158 | newFunc("", "llSetPayPrice", "integer price", "list quick_pay_buttons") |
1159 | newFunc("", "llSetPhysicsMaterial", "integer mask", "float gravity_multiplier", "float restitution", "float friction", "float density") | ||
1137 | newFunc("", "llSetPrimitiveParams", "list params") | 1160 | newFunc("", "llSetPrimitiveParams", "list params") |
1138 | newFunc("integer", "llSetRegionPos", "vector pos") | 1161 | newFunc("integer", "llSetRegionPos", "vector pos") |
1139 | newFunc("", "llSetStatus", "integer status", "integer value") | 1162 | newFunc("", "llSetStatus", "integer status", "integer value") |
@@ -1208,17 +1231,17 @@ newFunc("vector", "llVecNorm", "vector v") | |||
1208 | newFunc("", "llAdjustSoundVolume", "float volume") | 1231 | newFunc("", "llAdjustSoundVolume", "float volume") |
1209 | newFunc("integer", "llClearLinkMedia", "integer link", "integer face") | 1232 | newFunc("integer", "llClearLinkMedia", "integer link", "integer face") |
1210 | newFunc("integer", "llClearPrimMedia", "integer face") | 1233 | newFunc("integer", "llClearPrimMedia", "integer face") |
1211 | newFunc("", "llParcelMediaCommandList", "list commandList") | 1234 | newFunc("list", "llGetLinkMedia", "integer link", "integer face", "list rules") |
1212 | newFunc("list", "llParcelMediaQuery", "list aList") | 1235 | newFunc("string", "llGetParcelMusicURL") |
1213 | newFunc("list", "llGetPrimMediaParams", "integer face", "list rules") | 1236 | newFunc("list", "llGetPrimMediaParams", "integer face", "list rules") |
1214 | newFunc("", "llLoopSound", "string sound", "float volume") | 1237 | newFunc("", "llLoopSound", "string sound", "float volume") |
1215 | newFunc("", "llLoopSoundMaster", "string sound", "float volume") | 1238 | newFunc("", "llLoopSoundMaster", "string sound", "float volume") |
1216 | newFunc("", "llLoopSoundSlave", "string sound", "float volume") | 1239 | newFunc("", "llLoopSoundSlave", "string sound", "float volume") |
1240 | newFunc("", "llParcelMediaCommandList", "list commandList") | ||
1241 | newFunc("list", "llParcelMediaQuery", "list aList") | ||
1217 | newFunc("", "llPlaySound", "string name", "float volume") | 1242 | newFunc("", "llPlaySound", "string name", "float volume") |
1218 | newFunc("", "llPlaySoundSlave", "string sound", "float volume") | 1243 | newFunc("", "llPlaySoundSlave", "string sound", "float volume") |
1219 | newFunc("", "llPreloadSound", "string sound") | 1244 | newFunc("", "llPreloadSound", "string sound") |
1220 | newFunc("", "llTriggerSound", "string sound", "float volume") | ||
1221 | newFunc("", "llTriggerSoundLimited", "string sound", "float volume", "vector top_north_east", "vector bottom_south_west") | ||
1222 | newFunc("integer", "llSetLinkMedia", "integer link", "integer face", "list rules") | 1245 | newFunc("integer", "llSetLinkMedia", "integer link", "integer face", "list rules") |
1223 | newFunc("", "llSetParcelMusicURL", "string url") | 1246 | newFunc("", "llSetParcelMusicURL", "string url") |
1224 | newFunc("integer", "llSetPrimMediaParams", "integer face", "list rules") | 1247 | newFunc("integer", "llSetPrimMediaParams", "integer face", "list rules") |
@@ -1227,6 +1250,22 @@ newFunc("", "llSetSoundRadius", "float radius") | |||
1227 | newFunc("", "llSound", "string sound", "float volume", "integer queue", "integer loop") | 1250 | newFunc("", "llSound", "string sound", "float volume", "integer queue", "integer loop") |
1228 | newFunc("", "llSoundPreload", "string sound") | 1251 | newFunc("", "llSoundPreload", "string sound") |
1229 | newFunc("", "llStopSound") | 1252 | newFunc("", "llStopSound") |
1253 | newFunc("", "llTriggerSound", "string sound", "float volume") | ||
1254 | newFunc("", "llTriggerSoundLimited", "string sound", "float volume", "vector top_north_east", "vector bottom_south_west") | ||
1255 | |||
1256 | -- LSL path finding functions | ||
1257 | newFunc("", "llCreateCharacter", "list options") | ||
1258 | newFunc("", "llDeleteCharacter") | ||
1259 | newFunc("", "llEvade", "key target", "list options") | ||
1260 | newFunc("", "llExecCharacterCmd", "integer command", "list options") | ||
1261 | newFunc("", "llFleeFrom", "vector position", "float distance", "list options") | ||
1262 | newFunc("list", "llGetClosestNavPoint", "vector point", "list options") | ||
1263 | newFunc("list", "llGetStaticPath", "vector start", "vector End", "float radius", "list params") | ||
1264 | newFunc("", "llNavigateTo", "vector pos", "list options") | ||
1265 | newFunc("", "llPatrolPoints", "list patrolPoints", "list options") | ||
1266 | newFunc("", "llPursue", "key target", "list options") | ||
1267 | newFunc("", "llUpdateCharacter", "list options") | ||
1268 | newFunc("", "llWanderWithin", "vector origin", "vector dist", "list options") | ||
1230 | 1269 | ||
1231 | -- LSL physics functions | 1270 | -- LSL physics functions |
1232 | newFunc("", "llApplyImpulse", "vector force", "integer local") | 1271 | newFunc("", "llApplyImpulse", "vector force", "integer local") |
@@ -1235,14 +1274,18 @@ newFunc("vector", "llGetAccel") | |||
1235 | newFunc("vector", "llGetCenterOfMass") | 1274 | newFunc("vector", "llGetCenterOfMass") |
1236 | newFunc("vector", "llGetForce") | 1275 | newFunc("vector", "llGetForce") |
1237 | newFunc("float", "llGetMass") | 1276 | newFunc("float", "llGetMass") |
1277 | newFunc("float", "llGetMassMKS") | ||
1238 | newFunc("float", "llGetObjectMass", "string id") | 1278 | newFunc("float", "llGetObjectMass", "string id") |
1239 | newFunc("vector", "llGetTorque") | 1279 | newFunc("vector", "llGetTorque") |
1240 | newFunc("vector", "llGetVel") | 1280 | newFunc("vector", "llGetVel") |
1241 | newFunc("", "llPushObject", "string target", "vector impulse", "vector ang_impulse", "integer local") | 1281 | newFunc("", "llPushObject", "string target", "vector impulse", "vector ang_impulse", "integer local") |
1282 | newFunc("", "llSetAngularVelocity", "vector initial_omega", "integer local") | ||
1242 | newFunc("", "llSetBuoyancy", "float buoyancy") | 1283 | newFunc("", "llSetBuoyancy", "float buoyancy") |
1243 | newFunc("", "llSetForce", "vector force", "integer local") | 1284 | newFunc("", "llSetForce", "vector force", "integer local") |
1244 | newFunc("", "llSetForceAndTorque", "vector force", "vector torque", "integer local") | 1285 | newFunc("", "llSetForceAndTorque", "vector force", "vector torque", "integer local") |
1286 | newFunc("", "llSetKeyframedMotion", "list keyframes", "list options") | ||
1245 | newFunc("", "llSetTorque", "vector torque", "integer local") | 1287 | newFunc("", "llSetTorque", "vector torque", "integer local") |
1288 | newFunc("", "llSetVelocity", "vector force", "integer local") | ||
1246 | 1289 | ||
1247 | -- LSL rotation / scaling / translation functions | 1290 | -- LSL rotation / scaling / translation functions |
1248 | newFunc("vector", "llGetLocalPos") | 1291 | newFunc("vector", "llGetLocalPos") |
@@ -1293,6 +1336,7 @@ newFunc("integer", "llSubStringIndex", "string text", "string sub") | |||
1293 | newFunc("string", "llToLower", "string source") | 1336 | newFunc("string", "llToLower", "string source") |
1294 | newFunc("string", "llToUpper", "string source") | 1337 | newFunc("string", "llToUpper", "string source") |
1295 | newFunc("string", "llUnescapeURL", "string url") | 1338 | newFunc("string", "llUnescapeURL", "string url") |
1339 | newFunc("string", "llXorBase64", "string str1", "string str2") | ||
1296 | newFunc("string", "llXorBase64Strings", "string str1", "string str2") | 1340 | newFunc("string", "llXorBase64Strings", "string str1", "string str2") |
1297 | newFunc("string", "llXorBase64StringsCorrect", "string str1", "string str2") | 1341 | newFunc("string", "llXorBase64StringsCorrect", "string str1", "string str2") |
1298 | 1342 | ||