Difference between revisions of "04AD"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 04AD=1,  %1d%
+
| games      = {{Icon|VC}} {{Icon|SA}}
| description = Checks if the actor is touching water
+
| command    = IS_CHAR_IN_WATER
| p1          = Actor handle
+
| description = Checks if the character is in water
| game        = [[Vice City]], [[San Andreas]]
+
| syntax1    = 04AD:   actor [''char handle''] in_water
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 
}}
 
}}
This opcode checks if the actor is touching [[Water.dat|real water]], not the fake ones with fake textures.
 
  
==Keywords==
+
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.
check, actor, touching, water
+
 
 +
== Keywords ==
 +
check, actor, character, touch, touching, water
 +
 
 +
== See also ==
 +
* {{Icon|VC}} [[0521]], checks if the character is drowning in water

Revision as of 08:10, 16 January 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 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.

Keywords

check, actor, character, touch, touching, water

See also

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