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