GetHisHer

From UODemo Wiki
Revision as of 20:55, 24 November 2012 by Batlin (talk | contribs)

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

integer getHisHer(object Mobile);

The getHisHer function will return a string containing "his", "her" or "its" based on the sex value of a mobile. See getSex.

sex=0: "his" is returned
sex=1: "her" is returned
sex=2: "its" is returned

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


Return to the Command List.