Category:LSL Needs Example
Revision as of 04:06, 10 August 2009 by EddyFragment Robonaught (talk | contribs) (Fixed very minor (but right is right) grammatical error.)
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)P
- PRIM BUMP TILE
- PRIM BUMP WEAVE
- PRIM BUMP WOOD
- PRIM CLICK ACTION
- PRIM COLOR
- PRIM DAMAGE
- PRIM DESC
- PRIM FLEXIBLE
- PRIM FULLBRIGHT
- PRIM GLTF ALPHA MODE BLEND
- PRIM GLTF ALPHA MODE MASK
- PRIM GLTF ALPHA MODE OPAQUE
- PRIM GLTF BASE COLOR
- PRIM GLTF EMISSIVE
- PRIM GLTF METALLIC ROUGHNESS
- PRIM GLTF NORMAL
- PRIM HEALTH
- PRIM HOLE CIRCLE
- PRIM HOLE DEFAULT
- PRIM HOLE SQUARE
- PRIM HOLE TRIANGLE
- PRIM MATERIAL FLESH
- PRIM MATERIAL GLASS
- PRIM MATERIAL LIGHT
- PRIM MATERIAL METAL
- PRIM MATERIAL PLASTIC
- PRIM MATERIAL RUBBER
- PRIM MATERIAL STONE
- PRIM MATERIAL WOOD
- PRIM MEDIA ALT IMAGE ENABLE
- PRIM MEDIA AUTO LOOP
- PRIM MEDIA AUTO PLAY
- PRIM MEDIA AUTO SCALE
- PRIM MEDIA AUTO ZOOM
- PRIM MEDIA CURRENT URL
- PRIM MEDIA FIRST CLICK INTERACT
- PRIM MEDIA HEIGHT PIXELS
- PRIM MEDIA HOME URL
- PRIM MEDIA PERMS CONTROL
- PRIM MEDIA PERMS INTERACT
- PRIM MEDIA PERM ANYONE
- PRIM MEDIA PERM GROUP
- PRIM MEDIA PERM NONE
- PRIM MEDIA PERM OWNER
- PRIM MEDIA WHITELIST
- PRIM MEDIA WHITELIST ENABLE
- PRIM MEDIA WIDTH PIXELS
- PRIM NORMAL
- PRIM PHYSICS SHAPE CONVEX
- PRIM PHYSICS SHAPE NONE
- PRIM PHYSICS SHAPE PRIM
- PRIM PHYSICS SHAPE TYPE
- PRIM POSITION
- PRIM POS LOCAL
- PRIM PROJECTOR
- PRIM REFLECTION PROBE BOX
- PRIM REFLECTION PROBE DYNAMIC
- PRIM REFLECTION PROBE MIRROR
- PRIM RENDER MATERIAL
- PRIM SCRIPTED SIT ONLY
- PRIM SCULPT FLAG ANIMESH
- PRIM SCULPT FLAG INVERT
- PRIM SCULPT FLAG MIRROR
- PRIM SCULPT TYPE CYLINDER
- PRIM SCULPT TYPE MASK
- PRIM SCULPT TYPE MESH
- PRIM SCULPT TYPE PLANE
- PRIM SCULPT TYPE SPHERE
- PRIM SCULPT TYPE TORUS
- PRIM SHINY HIGH
- PRIM SHINY LOW
- PRIM SHINY MEDIUM
- PRIM SHINY NONE
- PRIM SIT TARGET
- PRIM SPECULAR
- PRIM TEMP ON REZ
- PRIM TEXGEN
- PRIM TEXGEN DEFAULT
- PRIM TEXGEN PLANAR
- PRIM TEXTURE
- PRIM TYPE
- PROFILE NONE
- PROFILE SCRIPT MEMORY
R
- RAD TO DEG
- RCERR CAST TIME EXCEEDED
- RCERR SIM PERF LOW
- RCERR UNKNOWN
- RC DATA FLAGS
- RC DETECT PHANTOM
- RC GET LINK NUM
- RC GET NORMAL
- RC GET ROOT KEY
- RC MAX HITS
- RC REJECT AGENTS
- RC REJECT LAND
- RC REJECT NONPHYSICAL
- RC REJECT PHYSICAL
- RC REJECT TYPES
- LlRefreshPrimURL
- REGION FLAG ALLOW DAMAGE
- REGION FLAG ALLOW DIRECT TELEPORT
- REGION FLAG BLOCK FLY
- REGION FLAG BLOCK TERRAFORM
- REGION FLAG DISABLE COLLISIONS
- REGION FLAG DISABLE PHYSICS
- REGION FLAG FIXED SUN
- REGION FLAG RESTRICT PUSHOBJECT
- REGION FLAG SANDBOX
- LlReleaseCamera
- LlReleaseControls
- LlRemoteDataReply
- LlRemoteDataSetRegion
- LlRemoteLoadScript
- Remote data
- REMOTE DATA CHANNEL
- REMOTE DATA REPLY
- REMOTE DATA REQUEST
- LlRemoveVehicleFlags
- LlResetAnimationOverride
- LlReturnObjectsByID
- LlReturnObjectsByOwner
- REVERSE
- REZ DAMAGE
- REZ DAMAGE TYPE
- LlRot2Angle
- LlRot2Axis
- ROTATE
S
- SCALE
- LlScriptDanger
- LlSendRemoteData
- LlSetLinkCamera
- LlSetEnvironment
- LlSetInventoryPermMask
- LlSetLinkMedia
- LlSetLinkSitFlags
- LlSetObjectPermMask
- LlSetPrimMediaParams
- LlSetPrimURL
- LlSetRemoteScriptAccessPin
- LlSetVehicleFlags
- LlSetVehicleFloatParam
- LlSetVehicleVectorParam
- LlSetVelocity
- SIM STAT ACTIVE SCRIPT COUNT
- SIM STAT AGENT COUNT
- SIM STAT AGENT MS
- SIM STAT AGENT UPDATES
- SIM STAT AI MS
- SIM STAT ASSET DOWNLOADS
- SIM STAT ASSET UPLOADS
- SIM STAT CHILD AGENT COUNT
- SIM STAT FRAME MS
- SIM STAT IMAGE MS
- SIM STAT IO PUMP MS
- SIM STAT NET MS
- SIM STAT OTHER MS
- SIM STAT PACKETS IN
- SIM STAT PACKETS OUT
- SIM STAT PCT CHARS STEPPED
- SIM STAT PHYSICS FPS
- SIM STAT PHYSICS MS
- SIM STAT PHYSICS OTHER MS
- SIM STAT PHYSICS SHAPE MS
- SIM STAT PHYSICS STEP MS
- SIM STAT SCRIPT EPS
- SIM STAT SCRIPT MS
- SIM STAT SCRIPT RUN PCT
- SIM STAT SLEEP MS
- SIM STAT SPARE MS
- SIM STAT UNACKED BYTES
- SMOOTH
- LlSoundPreload
- SQRT2
- LlsRGB2Linear
- STATUS BOUNDS ERROR
- STATUS CAST SHADOWS
- STATUS DIE AT EDGE
- STATUS DIE AT NO ENTRY
- STATUS INTERNAL ERROR
- STATUS MALFORMED PARAMS
- STATUS NOT FOUND
- STATUS NOT SUPPORTED
- STATUS OK
- STATUS RETURN AT EDGE
- STATUS TYPE MISMATCH
- STATUS WHITELIST FAILED
- LlStopPointAt
- STRING TRIM
- STRING TRIM HEAD
- STRING TRIM TAIL