OsGetLinkNumber
From OpenSimulator
(Difference between revisions)
Line 5: | Line 5: | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
// Example of osGetLinkNumber | // Example of osGetLinkNumber | ||
+ | |||
+ | string object_name = "Change Me!"; | ||
default | default | ||
Line 10: | Line 12: | ||
state_entry() | state_entry() | ||
{ | { | ||
− | integer | + | integer link_number = osGetLinkNumber(object_name); |
− | llOwnerSay(llGetLinkName( | + | llOwnerSay(llGetLinkName(link_number )); |
} | } | ||
} | } |
Revision as of 13:34, 15 October 2017
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.
| |
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 )); } } |