OsAvatarName2Key
From OpenSimulator
(Difference between revisions)
m (XEngine to OSSL) |
m (Indentation) |
||
Line 11: | Line 11: | ||
string FirstName = "John"; | string FirstName = "John"; | ||
string LastName = "Smith"; | string LastName = "Smith"; | ||
+ | |||
default | default | ||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
− | llSay( | + | llSay(PUBLIC_CHANNEL, "Script running"); |
} | } | ||
− | touch_end(integer | + | |
+ | touch_end(integer number) | ||
{ | { | ||
kAvatarKey = osAvatarName2Key(FirstName, LastName); | kAvatarKey = osAvatarName2Key(FirstName, LastName); | ||
Line 24: | Line 26: | ||
} | } | ||
</source> | </source> | ||
− | |||
|description=Returns an avatar's key, based on his/her first and last name. | |description=Returns an avatar's key, based on his/her first and last name. | ||
| | | | ||
}} | }} |
Revision as of 11:32, 24 November 2020
key osAvatarName2Key(string FirstName, string LastName)
| |
Returns an avatar's key, based on his/her first and last name. | |
Threat Level | Low |
Permissions | ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER |
Extra Delay | 0 seconds |
Example(s) | |
// // Sample Script using osAvatarName2Key(first,last) to send Instant Message // string FirstName = "John"; string LastName = "Smith"; default { state_entry() { llSay(PUBLIC_CHANNEL, "Script running"); } touch_end(integer number) { kAvatarKey = osAvatarName2Key(FirstName, LastName); llInstantMessage(kAvatarKey, "Test Message Here"); } } |