SameSex

From UODemo Wiki
Revision as of 11:11, 13 September 2010 by Batlin (talk | contribs) (Created page with 'integer '''sameSex'''(object ''MobileA'', object ''MobileB'');<br> The ''sameSex'' function will return 1 if both mobiles have the same 'sex value', see getSex. Otherwise 0 …')

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

integer sameSex(object MobileA, object MobileB);

The sameSex function will return 1 if both mobiles have the same 'sex value', see getSex. Otherwise 0 is returned.

Because a 'sex value' of 0 is used for both male mobiles and invalid mobiles, you should use the isMobile function to validate the objects first to avoid unwanted results!


Return to the Command List.