OsListAs*
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |permissions=true |threat_level=ignored |delay=0 |function_syntax= integer osListAs(list src, integer index)<br/> integer osListAsInteger(list src, integer index)<b...") |
|||
| (One intermediate revision by one user not shown) | |||
| Line 3: | Line 3: | ||
|threat_level=ignored | |threat_level=ignored | ||
|delay=0 | |delay=0 | ||
| − | |function_syntax= | + | |function_syntax= |
integer osListAsInteger(list src, integer index)<br/> | integer osListAsInteger(list src, integer index)<br/> | ||
float osListAsFloat(list src, integer index)<br/> | float osListAsFloat(list src, integer index)<br/> | ||
| Line 9: | Line 9: | ||
vector osListAsVector(list src, integer index)<br/> | vector osListAsVector(list src, integer index)<br/> | ||
rotation osListAsRotation(list src, integer index)<br/> | rotation osListAsRotation(list src, integer index)<br/> | ||
| − | |description= | + | |description=Return the element at index as integer, float, string, vector or rotation. Index must me >= 0 and the element on at that position must be of the requested type. Because of this restrictions, This should be a bit faster than the llList2* functions |
|ossl_example= | |ossl_example= | ||
<source lang="lsl"> | <source lang="lsl"> | ||
Latest revision as of 11:40, 9 May 2025
integer osListAsInteger(list src, integer index)
float osListAsFloat(list src, integer index) | |
| Return the element at index as integer, float, string, vector or rotation. Index must me >= 0 and the element on at that position must be of the requested type. Because of this restrictions, This should be a bit faster than the llList2* functions | |
| Threat Level | This function does not do a threat level check |
| Permissions | Use of this function is always allowed by default |
| Extra Delay | 0 seconds |
| Example(s) | |
| Notes | |
| add to 0.9.3.1 | |