OsGetGender
From OpenSimulator
(Difference between revisions)
m (Added permissions and delay information) |
m (Added note stating which version of OpenSim introduced this function) |
||
Line 19: | Line 19: | ||
</source> | </source> | ||
|description=Returns a string with one of the following values: "male", "female", or "unknown". This value is determined by the value selected for the avatar shape in the appearance dialog in the user's viewer. If that value cannot be found for any reason (avatar is not in the region, improperly formatted key, etc.), "unknown" is returned. | |description=Returns a string with one of the following values: "male", "female", or "unknown". This value is determined by the value selected for the avatar shape in the appearance dialog in the user's viewer. If that value cannot be found for any reason (avatar is not in the region, improperly formatted key, etc.), "unknown" is returned. | ||
− | | | + | |additional_info=This function was added in 0.8.2-post-fixes |
}} | }} |
Revision as of 09:25, 15 October 2018
string osGetGender(key id)
C#: LSL_String osGetGender(LSL_Key id) | |
Returns a string with one of the following values: "male", "female", or "unknown". This value is determined by the value selected for the avatar shape in the appearance dialog in the user's viewer. If that value cannot be found for any reason (avatar is not in the region, improperly formatted key, etc.), "unknown" is returned. | |
Threat Level | None |
Permissions | Use of this function is always allowed by default |
Extra Delay | 0 seconds |
Example(s) | |
// // Example of osGetGender. // default { touch_start(integer total_number) { string gender = osGetGender(llDetectedKey(0)); llSay(0, "Your gender is:" + gender); } } | |
Notes | |
This function was added in 0.8.2-post-fixes |