Category:LSL Needs Example
Revision as of 10:44, 8 August 2012 by Strife Onizuka (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Articles in this category need examples written for them. To do that set the 'examples' value equal to a multiline string.
Example: llFrand (the order of the parameters in the definition has no effect on the rendering).
{{LSL_Function |sort=Frand |func=llFrand |func_id=8 |func_sleep=0.0 |func_energy=10.0 |p1_type=float |p1_name=mag |p1_desc=Any valid float value |return_type=float |return_text=that is pseudo random number in the range [0.0,mag) or (mag, 0.0]. |spec=returns a pseudo random number in range [0.0, mag) or (mag, 0.0], depending upon the sign of mag. |caveats |examples=<lsl>default { touch_start(integer total_number) { // When touched, say "Heads" with probability 0.5, // otherwise, say "Tails." if ( llFrand(1.) < .5) llSay(0, "Heads"); else llSay(0, "Tails"); } }</lsl> |func_helpers |also |notes= The random number generator is not a source of entropy. The sequence of random numbers are shared across the entire process, and not independently seeded. Therefore, the pseudo random number generation is not suitable for any application which requires completely predictable or completely unpredictable results. |cat1=Math |cat2 |cat3 }}
Pages in category "LSL Needs Example"
The following 200 pages are in this category, out of 659 total.
(previous page) (next page)A
C
- CAMERA ACTIVE
- CAMERA BEHINDNESS ANGLE
- CAMERA BEHINDNESS LAG
- CAMERA DISTANCE
- CAMERA FOCUS
- CAMERA FOCUS LAG
- CAMERA FOCUS LOCKED
- CAMERA FOCUS OFFSET
- CAMERA FOCUS THRESHOLD
- CAMERA PITCH
- CAMERA POSITION
- CAMERA POSITION LAG
- CAMERA POSITION LOCKED
- CAMERA POSITION THRESHOLD
- CHARACTER ACCOUNT FOR SKIPPED FRAMES
- CHARACTER AVOIDANCE MODE
- CHARACTER DESIRED SPEED
- CHARACTER DESIRED TURN SPEED
- CHARACTER LENGTH
- CHARACTER MAX ACCEL
- CHARACTER MAX DECEL
- CHARACTER MAX SPEED
- CHARACTER MAX TURN RADIUS
- CHARACTER ORIENTATION
- CHARACTER RADIUS
- CHARACTER STAY WITHIN PARCEL
- CHARACTER TYPE
- CHARACTER TYPE A
- CHARACTER TYPE B
- CHARACTER TYPE C
- CHARACTER TYPE D
- CHARACTER TYPE NONE
- CLICK ACTION BUY
- CLICK ACTION IGNORE
- CLICK ACTION NONE
- CLICK ACTION OPEN
- CLICK ACTION OPEN MEDIA
- CLICK ACTION PAY
- CLICK ACTION PLAY
- CLICK ACTION SIT
- CLICK ACTION DISABLED
- CLICK ACTION TOUCH
- CLICK ACTION ZOOM
- LlCloseRemoteDataChannel
- LlCollisionSprite
- COMBAT CHANNEL
- COMBAT LOG ID
- CONTENT TYPE ATOM
- CONTENT TYPE FORM
- CONTENT TYPE HTML
- CONTENT TYPE JSON
- CONTENT TYPE LLSD
- CONTENT TYPE RSS
- CONTENT TYPE TEXT
- CONTENT TYPE XHTML
- CONTENT TYPE XML
- CONTROL BACK
- CONTROL DOWN
- CONTROL FWD
- CONTROL LBUTTON
- CONTROL LEFT
- CONTROL ML LBUTTON
- CONTROL RIGHT
- CONTROL ROT LEFT
- CONTROL ROT RIGHT
- CONTROL UP
D
E
G
- GAME CONTROL AXIS LEFTX
- GAME CONTROL AXIS LEFTY
- GAME CONTROL AXIS RIGHTX
- GAME CONTROL AXIS RIGHTY
- GAME CONTROL AXIS TRIGGERLEFT
- GAME CONTROL AXIS TRIGGERRIGHT
- GAME CONTROL BUTTON A
- GAME CONTROL BUTTON B
- GAME CONTROL BUTTON BACK
- GAME CONTROL BUTTON DPAD DOWN
- GAME CONTROL BUTTON DPAD LEFT
- GAME CONTROL BUTTON DPAD RIGHT
- GAME CONTROL BUTTON DPAD UP
- GAME CONTROL BUTTON GUIDE
- GAME CONTROL BUTTON LEFTSHOULDER
- GAME CONTROL BUTTON LEFTSTICK
- GAME CONTROL BUTTON MISC1
- GAME CONTROL BUTTON PADDLE1
- GAME CONTROL BUTTON PADDLE2
- GAME CONTROL BUTTON PADDLE3
- GAME CONTROL BUTTON PADDLE4
- GAME CONTROL BUTTON RIGHTSHOULDER
- GAME CONTROL BUTTON RIGHTSTICK
- GAME CONTROL BUTTON START
- GAME CONTROL BUTTON TOUCHPAD
- GAME CONTROL BUTTON X
- GAME CONTROL BUTTON Y
- LlGetAttachedListFiltered
- LlGetHealth
- LlGetLinkMedia
- LlGetLinkSitFlags
- LlGetMoonDirection
- LlGetMoonRotation
- LlGetPrimMediaParams
- LlGetRegionMoonDirection
- LlGetRegionMoonRotation
- LlGetRegionSunDirection
- LlGetRegionSunRotation
- LlGetSunDirection
- LlGetSunRotation
- LlGetTorque
- LlGetVisualParams
- LlGiveAgentInventory
- LlTransferOwnership
- LlGroundContour
- LlGroundNormal
- LlGroundSlope
H
K
L
- LAND LEVEL
- LAND LOWER
- LAND NOISE
- LAND RAISE
- LAND REVERT
- LAND SMOOTH
- LlLinear2sRGB
- LlLinksetDataAvailable
- LlLinksetDataCountFound
- LlLinksetDataCountKeys
- LlLinksetDataDeleteFound
- LlLinksetDataListKeys
- LlLinksetDataRead
- LlLinksetDataReset
- LlLinkSitTarget
- LINK ALL CHILDREN
- LINK ALL OTHERS
- LINK ROOT
- LINK SET
- LINK THIS
- LIST STAT GEOMETRIC MEAN
- LIST STAT MEDIAN
- LIST STAT STD DEV