Difference between revisions of "03A3"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|trilogy}} '''IS_CHAR_MALE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = IS_CHAR_MALE
: Checks if the character is male
+
| description = Checks if the character is male
'''Syntax'''
+
| syntax1    = 03A3: &nbsp; actor [''char handle''] male
: 03A3: &nbsp; actor [''char handle''] male
+
| p1t        = [''char handle'']
'''Parameter'''
+
| p1d        = The handle of the character
: [''char handle'']
+
| native      = [[IS_CHAR_MALE]]
:: The handle of the character
+
}}
'''Native analog'''
 
: [[IS_CHAR_MALE]]
 
  
This conditional opcode returns true if the character is not [[pedtype]] 5 or 20 in GTA III and Vice City, or 5 or 22 in San Andreas, essentially checking if the character is "male."
+
This conditional opcode returns true if the [[ped type]] of the character is not CIVFEMALE or PROSTITUTE, essentially returning true if the character is "male."
  
 
== Keywords ==
 
== Keywords ==
 
check, actor, character, female, man, men, woman, women, gender
 
check, actor, character, female, man, men, woman, women, gender
 
[[Category:OpCodes]]
 

Latest revision as of 09:08, 7 November 2016

GTA III Vice City San Andreas IS_CHAR_MALE


Description
Checks if the character is male
Syntax
03A3:   actor [char handle] male
Parameter
[char handle]
The handle of the character
Native analog
IS_CHAR_MALE

This conditional opcode returns true if the ped type of the character is not CIVFEMALE or PROSTITUTE, essentially returning true if the character is "male."

Keywords

check, actor, character, female, man, men, woman, women, gender