Difference between revisions of "GetHeShe"

From UODemo Wiki
Jump to: navigation, search
(Created page with 'integer '''getHeShe'''(object ''Mobile'');<br> The ''getHeShe'' function will return a string containing "he", "she" or "it" based on the sex value of a mobile. See getSex. …')
 
 
Line 7: Line 7:
 
sex=2: "it" is returned<br>
 
sex=2: "it" is returned<br>
  
If an invalid object/mobile is provided than the string "he" will be returned, see [[getSex]] for more details.
+
If an invalid object/mobile is provided than the string "he" will be returned, see [[getSex]] for more details.<br>
 +
Because player ghosts have a body type of 402 or 403, they will be considered "it".
  
  
 
Return to the [[Command List]].
 
Return to the [[Command List]].

Latest revision as of 20:55, 24 November 2012

integer getHeShe(object Mobile);

The getHeShe function will return a string containing "he", "she" or "it" based on the sex value of a mobile. See getSex.

sex=0: "he" is returned
sex=1: "she" is returned
sex=2: "it" is returned

If an invalid object/mobile is provided than the string "he" will be returned, see getSex for more details.
Because player ghosts have a body type of 402 or 403, they will be considered "it".


Return to the Command List.