Difference between revisions of "04AD"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
m
 
Line 8: Line 8:
 
}}
 
}}
  
This opcode returns true when the character is touching water while on foot. It returns false otherwise, including when the character is submerged while in a vehicle.
+
This conditional opcode returns true if the character is touching water while on foot. It returns false otherwise, including when the character is submerged while in a vehicle.
  
 
== Keywords ==
 
== Keywords ==

Latest revision as of 08:02, 4 December 2016

Vice City San Andreas IS_CHAR_IN_WATER


Description
Checks if the character is in water
Syntax
04AD:   actor [char handle] in_water
Parameter
[char handle]
The handle of the character

This conditional opcode returns true if the character is touching water while on foot. It returns false otherwise, including when the character is submerged while in a vehicle.

Keywords

check, actor, character, touch, touching, water

See also

  • Vice City 0521, checks if the character is drowning in water