OsGetGender

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added permissions and delay information)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=None
 
|threat_level=None
 +
|permissions=true
 +
|delay=0
 
|function_syntax=string osGetGender(key id)
 
|function_syntax=string osGetGender(key id)
 
|csharp_syntax=LSL_String osGetGender(LSL_Key id)
 
|csharp_syntax=LSL_String osGetGender(LSL_Key id)

Revision as of 07:58, 25 October 2017

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);
    }
}
Personal tools
General
About This Wiki