Difference between revisions of "0597"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code>0597=1,  %1d%</code><br>
+
{{Icon|VC}} {{Icon|SA}} '''IS_CHAR_DUCKING'''
'''Description''': Checks if the actor is crouching<br>
+
<hr />
'''Parameter 1''': Actor handle<br>
+
'''Description'''
'''Supports''': Vice City, San Andreas<br>
+
: Checks if the character is crouching
 +
'''Syntax'''
 +
: 0597: &nbsp; 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 called in the original script of Vice City.
  
 
==Keywords==
 
==Keywords==
check, actor, crouching
+
check, actor, character, crouch, duck
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 20:42, 28 December 2014

Vice City San Andreas IS_CHAR_DUCKING


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 called in the original script of Vice City.

Keywords

check, actor, character, crouch, duck