0521

From GTAMods Wiki
Jump to navigation Jump to search

Vice City IS_CHAR_DROWNING_IN_WATER


Description
Checks if the character is drowning in water
Syntax
0521:   actor [char handle] drowning_in_water
Parameter
[char handle]
The handle of the character

This conditional opcode returns true when the character is taking damage from ocean water while on foot. It returns false otherwise, including when the character is drowning while in a vehicle. This opcode is not supported in the original PS2 version. It first appeared in the PC version as a replacement for opcode 04AD in the "CELL" script (cellphone calls are ended when you are drowning, not when you are merely touching water).

Keywords

check, actor, character, drown, drowning, water