Difference between revisions of "03A3"

From GTAMods Wiki
Jump to navigation Jump to search
(created page)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 03A3=1,  %1d%
+
| games      = {{Icon|t}}
| description = Checks if the actor is male
+
| command    = IS_CHAR_MALE
| p1          = Existing actor handle
+
| description = Checks if the character is male
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| syntax1    = 03A3:   actor [''char handle''] male
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 
| native      = [[IS_CHAR_MALE]]
 
| native      = [[IS_CHAR_MALE]]
 
}}
 
}}
This conditional opcode returns true if the actor is not [[pedtype]] 5 or 20 in GTA 3 and Vice City, or 5 or 22 in San Andreas, essentially checking if the actor 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 ==
 +
check, actor, character, female, man, men, woman, women, gender

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