Difference between revisions of "GetSex"
From UODemo Wiki
(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…') |
(No difference)
|
Revision as of 10:46, 13 September 2010
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.