GetSex

From UODemo Wiki
Revision as of 10:46, 13 September 2010 by Batlin (talk | contribs) (Created page with 'integer '''getSex'''(object ''Mobile'');<br> The ''getSex'' function will return the sex of a mobile. The returned value can be 0, 1 or 2. 0: the given object is not a valid mo…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

integer getSex(object Mobile);

The getSex function will return the sex of a mobile. The returned value can be 0, 1 or 2.

0: the given object is not a valid mobile or is a valid mobile and has a male body type (0x190)
1: the given object is a valid mobile and has a female body type (0x191)
2: the given object is a valid mobile but does not have a male nor a female body type

Because the return value 0 indicates both a male or an invalid object/mobile you should use the isMobile function in your scripts to ensure that the object is valid!


Return to the Command List.