OsGetGender

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{osslfunc |threat_level=None |function_syntax=string osGetGender(key id) |csharp_syntax=LSL_String osGetGender(LSL_KEY id) |ossl_example=<source lang="lsl"> // // Example of ...")
 
Line 16: Line 16:
 
}
 
}
 
</source>
 
</source>
|description=Returns a string with one of the following values: "male", "female", or "unknown".
+
|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.
 
|
 
|
 
}}
 
}}

Revision as of 14:01, 30 May 2015

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 No permissions specified
Extra Delay No function delay specified
Example(s)
//
// Example of osGetGender.
//
default
{
    touch_start(integer total_number)
    {
        string gender = osGetGender(llDetectedKey(0));
        llSay(0, "Your gender is:" + gender);
    }
}
Personal tools
General
About This Wiki