OsGetLinkNumber

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added note stating which version of OpenSim introduced this function)
Line 20: Line 20:
 
* if names are not unique, the one with lower link number should be return
 
* if names are not unique, the one with lower link number should be return
 
* names "Object" and "Primitive" are ignored
 
* names "Object" and "Primitive" are ignored
|
+
|additional_info=This function was added in 0.9.0-post-fixes
 
}}
 
}}

Revision as of 10:41, 15 October 2018

integer osGetLinkNumber(string name)
C#: ...
returns the link number of the prim or sitting avatar with name "name" on the link set or -1 if the name is not found.
  • if names are not unique, the one with lower link number should be return
  • names "Object" and "Primitive" are ignored
Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
// Example of osGetLinkNumber
 
string object_name = "Change Me!";
 
default
{
    state_entry()
    {
        integer link_number = osGetLinkNumber(object_name);
        llOwnerSay(llGetLinkName(link_number));
    }
}
Notes
This function was added in 0.9.0-post-fixes
Personal tools
General
About This Wiki