Difference between revisions of "LlDetermineType"

From Second Life Wiki
Jump to navigation Jump to search
Line 14: Line 14:
|func=llDetermineType
|func=llDetermineType
|sort=
|sort=
|p1_type=integer
|p1_type=string
|p1_name=total_number_of_linked_prims
|p1_name=source
|p2_type=integer
|p2_name=start
|p3_type=integer
|p3_name=end
|p1_desc=
|p1_desc=
|func_footnote=
|func_footnote=

Revision as of 20:01, 4 May 2009

integer llDetermineType(string source, integer start, integer end);
if(llDetermineType(msg,0,-1)==1)
{
    integer new_number = msg;
    //llDetermineType determines the type of a part of a string and returns the result. In this istance, returning 1 will indicate that it is an integer instead of a key or rotation.
}
Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: integer llDetermineType( string source, integer start, integer end );
0.0 Forced Delay
10.0 Energy

Returns an integer of child prim keys.

• string source
• integer start
• integer end

number does not support negative indexes.

Caveats

  • If number is out of bounds the script continues to execute without an error message.

Examples

Notes

Should make it easier for scripters to get all child prim keys. Can be done using llGetLinkKey example is already provided.

Deep Notes

Signature

//function integer llDetermineType( string source, integer start, integer end );