Difference between revisions of "0597"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{OpCode
+
{{Icon|VC}} {{Icon|SA}}
| ini        = 0597=1,  %1d%
+
<hr />
| description = Checks if the actor is crouching
+
'''Description'''
| p1          = Actor handle
+
: Checks if the character is crouching
| game        = [[Vice City]], [[San Andreas]]
+
'''Syntax'''
| native      = [[IS_CHAR_DUCKING]]
+
: 0597: &nbsp; actor [''char handle''] crouching
}}
+
'''Parameter'''
This conditional opcode returns true if the actor is crouching.
+
: [''char handle'']
 +
:: The handle of the character
 +
'''Native analog'''
 +
: [[IS_CHAR_DUCKING]]
 +
 
 +
This conditional opcode returns true if the character is ducking in Vice City, and crouching in San Andreas. In Vice City, the primary way a character can duck is through opcode [[0372]], animation 14. Unlike San Andreas, it is not related to the crouch key. This opcode was never used in the original script of Vice City.
  
 
==Keywords==
 
==Keywords==
 
check, actor, character, crouch, duck
 
check, actor, character, crouch, duck
 +
 +
[[Category:OpCodes]]

Revision as of 00:15, 11 December 2011

Vice City San Andreas


Description

Checks if the character is crouching

Syntax

0597:   actor [char handle] crouching

Parameter

[char handle]
The handle of the character

Native analog

IS_CHAR_DUCKING

This conditional opcode returns true if the character is ducking in Vice City, and crouching in San Andreas. In Vice City, the primary way a character can duck is through opcode 0372, animation 14. Unlike San Andreas, it is not related to the crouch key. This opcode was never used in the original script of Vice City.

Keywords

check, actor, character, crouch, duck