Difference between revisions of "IsHumanBodyType"
(Created page with 'integer '''isHumanBodyType'''(object ''Mobile'');<br> The ''isHumanBodyType'' function will tell wether or not the Object Type of the specified mobile is that of a male or femal…') |
(No difference)
|
Revision as of 21:37, 22 November 2012
integer isHumanBodyType(object Mobile);
The isHumanBodyType function will tell wether or not the Object Type of the specified mobile is that of a male or female.
The function will return 0 if the specified serial is invalid or is not a mobile.
The following object types are valid human body types: 400, 401, 402, 403. The later two are the ghost bodies of the first two.
Because the return value 0 indicates both invalid serial/mobile and a non-human body type you should use the isMobile function in your scripts to ensure that the object is valid!
You can also use the getObjType function to get the actual body type of a mobile.
Counselors and Game Masters have a body type of 987 and therefor do not have a human body type according to this function!
Return to the Command List.