Don't click here unless you want to be banned.

LSL Wiki : Functions

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-204-236-235-245.compute-1.amazonaws.com

Functions


A function can be thought of as a machine into which input is provided, and which returns output. By using functions, the same blocks of code can be used over and over again, simply by referencing them.

LSL comes with over 310 built-in functions that allow scripts and objects to interact with their environment. All of the built-in functions start with "ll" -- those are lower-case 'L's, for "Linden Library".

The user can define functions (even with return values) as long as the name does not conflict with a reserved word, a built-in constant, or a built-in function.

Example
This example calls the llSay function which is used to send chat text to the specified channel.
llSay(0, "Hello world!");

Note: As SL has matured, several functions have been deprecated. Be sure to use the correct function since deprecated functions are unreliable and may be removed completely at a future date.

Categorical


  • Land (Ground/Terrain/Parcel)
  • Light
  • Link
  • List
  • Math
  • Particle
  • Primitive/Object
  • Script
  • Sensor
  • Simulator (Environment/Region/World)

  • Sound
  • String (Text/Name)
  • Teleport
  • Texture
  • Time
  • Transformation: Rotation/Scaling/Translation
  • Vehicle
  • Video
  • Weather
  • XML-RPC

  • Alphabetical

    A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

    A

    llAbs
    llAcos
    llAddToLandBanList (1.8)
    llAddToLandPassList
    llAdjustSoundVolume
    llAllowInventoryDrop
    llAngleBetween
    llApplyImpulse
    llApplyRotationalImpulse
    llAsin
    llAtan2
    llAttachToAvatar
    llAvatarOnSitTarget
    llAxes2Rot
    llAxisAngle2Rot

    B

    llBase64ToInteger (1.5)
    llBase64ToString
    llBreakAllLinks
    llBreakLink

    C

    llCeil
    llClearCameraParams (1.9)
    llCloseRemoteDataChannel
    llCloud
    llCollisionFilter
    llCollisionSound
    llCollisionSprite
    llCos
    llCreateLink
    llCSV2List

    D

    llDeleteSubList
    llDeleteSubString
    llDetachFromAvatar
    llDetectedGrab
    llDetectedGroup
    llDetectedKey
    llDetectedLinkNumber
    llDetectedName
    llDetectedOwner
    llDetectedPos
    llDetectedRot
    llDetectedTouchBinormal (1.21)
    llDetectedTouchFace (1.21)
    llDetectedTouchNormal (1.21)
    llDetectedTouchST (1.21)
    llDetectedTouchUV (1.21)
    llDetectedType
    llDetectedVel
    llDialog
    llDie
    llDumpList2String

    E

    llEdgeOfWorld
    llEjectFromLand
    llEmail
    llEscapeURL (1.7)
    llEuler2Rot

    F

    llFabs
    llFloor
    llForceMouselook
    llFrand

    G

    llGetAccel
    llGetAgentInfo
    llGetAgentLanguage
    llGetAgentSize
    llGetAlpha
    llGetAndResetTime
    llGetAnimation
    llGetAnimationList (1.4)
    llGetAttached
    llGetBoundingBox (1.5)
    llGetCameraPos (1.7)
    llGetCameraRot (1.7)
    llGetCenterOfMass
    llGetColor
    llGetCreator (1.5)
    llGetDate
    llGetEnergy
    llGetForce
    llGetFreeMemory
    llGetGeometricCenter (1.5)
    llGetGMTclock (1.5)
    llGetHTTPHeader (1.27)
    llGetInventoryCreator (1.6)
    llGetInventoryKey
    llGetInventoryName
    llGetInventoryNumber
    llGetInventoryPermMask (1.6)
    llGetInventoryType (1.7)
    llGetKey
    llGetLandOwnerAt
    llGetLinkKey
    llGetLinkName
    llGetLinkNumber
    llGetLinkPrimitiveParams (1.38)
    llGetListEntryType
    llGetListLength
    llGetLocalPos
    llGetLocalRot
    llGetMass
    llGetNextEmail
    llGetNotecardLine
    llGetNumberOfNotecardLines (1.5)
    llGetNumberOfPrims (1.5)
    llGetNumberOfSides
    llGetObjectDetails (1.18.3)
    llGetObjectDesc (1.5)
    llGetObjectMass
    llGetObjectName
    llGetObjectPermMask (1.6)
    llGetObjectPrimCount (1.13)
    llGetOmega
    llGetOwner
    llGetOwnerKey
    llGetParcelDetails (1.13)
    llGetParcelFlags (1.9)
    llGetParcelMaxPrims (1.13)
    llGetParcelPrimCount (1.13)
    llGetParcelPrimOwners (1.13)
    llGetPermissions
    llGetPermissionsKey
    llGetPos
    llGetPrimitiveParams (1.5)
    llGetRegionCorner
    llGetRegionFlags (1.9)
    llGetRegionFPS
    llGetRegionName
    llGetRegionTimeDilation
    llGetRootPosition (1.5)
    llGetRootRotation (1.5)
    llGetRot
    llGetScale
    llGetScriptName
    llGetScriptState
    llGetSimulatorHostname (1.5.1)
    llGetStartParameter
    llGetStatus
    llGetSubString
    llGetSunDirection
    llGetTexture
    llGetTextureOffset
    llGetTextureRot
    llGetTextureScale
    llGetTime
    llGetTimeOfDay
    llGetTimestamp (1.5)
    llGetTorque
    llGetUnixTime (1.9)
    llGetVel
    llGetWallclock
    llGiveInventory
    llGiveInventoryList
    llGiveMoney
    llGodLikeRezObject
    llGround
    llGroundContour
    llGroundNormal
    llGroundRepel
    llGroundSlope

    H

    llHTTPResponse (1.27)
    llHTTPRequest (1.10)

    I

    llInsertString
    llInstantMessage
    llIntegerToBase64 (1.5)

    K

    llKey2Name

    L

    llLinkParticleSystem (1.38)
    llList2CSV
    llList2Float
    llList2Integer
    llList2Key
    llList2List
    llList2ListStrided
    llList2Rot
    llList2String
    llList2Vector
    llListFindList
    llListInsertList
    llListRandomize
    llListReplaceList
    llListSort
    llListStatistics (1.9)
    llListen
    llListenControl
    llListenRemove
    llLoadURL
    llLog
    llLog10
    llLookAt
    llLoopSound
    llLoopSoundMaster
    llLoopSoundSlave

    M

    llMakeExplosion (deprecated)
    llMakeFire (deprecated)
    llMakeFountain (deprecated)
    llMakeSmoke (deprecated)

    llMapDestination (1.8)
    llMD5String
    llMessageLinked
    llMinEventDelay
    llModifyLand
    llModPow (1.6.2)
    llMoveToTarget

    O

    llOffsetTexture
    llOpenRemoteDataChannel
    llOverMyLand
    llOwnerSay (1.6)

    P

    llParcelMediaCommandList (1.6)
    llParcelMediaQuery (1.6)
    llParseString2List
    llParseStringKeepNulls (1.5.5)
    llParticleSystem
    llPassCollisions
    llPassTouches
    llPlaySound
    llPlaySoundSlave
    llPointAt
    llPow
    llPreloadSound
    llPushObject

    R

    llRefreshPrimURL (1.7)
    llRegionSay 1.16.0(5)
    llReleaseCamera
    llReleaseControls
    llReleaseURL (1.27)
    llRemoteDataReply
    llRemoteDataSetRegion
    llRemoteLoadScript (removed)
    llRemoteLoadScriptPin
    llRemoveFromLandBanList (1.8)
    llRemoveFromLandPassList (1.8)
    llRemoveInventory
    llRemoveVehicleFlags
    llRequestAgentData
    llRequestInventoryData
    llRequestPermissions
    llRequestSecureURL (1.27)
    llRequestSimulatorData (1.6)
    llRequestURL (1.27)
    llResetOtherScript
    llResetScript
    llResetTime
    llRezAtRoot (1.5.6)
    llRezObject
    llRot2Angle
    llRot2Axis
    llRot2Euler
    llRot2Fwd
    llRot2Left
    llRot2Up
    llRotBetween
    llRotLookAt
    llRotTarget
    llRotTargetRemove
    llRotateTexture
    llRound

    S

    llSameGroup
    llSay
    llScaleTexture
    llScriptDanger
    llSendRemoteData
    llSensor
    llSensorRemove
    llSensorRepeat
    llSetAlpha
    llSetBuoyancy
    llSetCameraAtOffset
    llSetCameraEyeOffset
    llSetCameraParams (1.9)
    llSetClickAction (1.19.1)
    llSetColor
    llSetDamage
    llSetForce
    llSetForceAndTorque
    llSetHoverHeight
    llSetLinkAlpha (1.5)
    llSetLinkColor
    llSetLinkPrimitiveParams (1.13.4)
    llSetLinkPrimitiveParamsFast (1.38)
    llSetLinkTexture (1.13.4)
    llSetLinkTextureAnim (1.38)
    llSetLocalRot (1.5.4)
    llSetObjectDesc (1.5)
    llSetObjectName
    llSetParcelMusicURL (1.4)
    llSetPayPrice (1.7)
    llSetPos
    llSetPrimURL (1.7)
    llSetPrimitiveParams
    llSetRemoteScriptAccessPin
    llSetRot
    llSetScale
    llSetScriptState
    llSetSitText
    llSetSoundQueueing
    llSetSoundRadius
    llSetStatus
    llSetText
    llSetTexture
    llSetTextureAnim
    llSetTimerEvent
    llSetTorque
    llSetTouchText
    llSetVehicleFlags
    llSetVehicleFloatParam
    llSetVehicleRotationParam
    llSetVehicleType
    llSetVehicleVectorParam
    llShout
    llSin
    llSitTarget
    llSleep
    llSound (deprecated)
    llSoundPreload (deprecated)
    llSqrt
    llStartAnimation
    llStopAnimation
    llStopHover
    llStopLookAt
    llStopMoveToTarget
    llStopPointAt
    llStopSound
    llStringLength
    llStringToBase64
    llStringTrim
    llSubStringIndex

    T

    llTakeCamera (deprecated)
    llTakeControls
    llTan
    llTarget
    llTargetOmega
    llTargetRemove
    llTeleportAgentHome
    llTextBox
    llToLower
    llToUpper
    llTriggerSound
    llTriggerSoundLimited

    U

    llUnescapeURL (1.7)
    llUnSit

    V

    llVecDist
    llVecMag
    llVecNorm
    llVolumeDetect

    W

    llWater
    llWhisper
    llWind

    X

    llXorBase64StringsCorrect (1.9)
    llXorBase64Strings (deprecated)


    User-Defined Functions | Events | Functions and Parameters only
    There are 35 comments on this page. [Display comments/form]