Difference between revisions of "04D8"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 04D8=2,%1d% %2h%
+
| games      = {{Icon|VC}} {{Icon|SA}}
| description = Sets the actor to drown in water
+
| command    = SET_CHAR_DROWNS_IN_WATER
| p1          = Existing actor handle
+
| description = Sets the character to drown in water
| p2          = Flag (0 = not drown, 1 = drown)
+
| syntax1    = 04D8: set_actor [''char handle''] drown [''int'']
| game        = [[Vice City]], [[San Andreas]]
+
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 +
| p2t        = [''int'']
 +
| p2d        = 0 = not drown, {{hint|1|or any value other than 0}} = drown (default)
 
}}
 
}}
This opcode prevents the actor from drowning in water, including the player, when the flag is set to 0. In Vice City, health will not be depleted when in water. In San Andreas, the actor will be able to swim on its own. The player's lung capacity will never run out.
 
  
==Keywords==
+
This opcode allows the character, including the player, to not drown while in water. In Vice City, health will not be depleted. In San Andreas, NPCs will be able to swim on their own and the player's lung capacity will never run out.
 +
 
 +
== Keywords ==
 
set, actor, character, water, drown
 
set, actor, character, water, drown

Latest revision as of 10:59, 3 December 2016

Vice City San Andreas SET_CHAR_DROWNS_IN_WATER


Description
Sets the character to drown in water
Syntax
04D8: set_actor [char handle] drown [int]
Parameter
[char handle]
The handle of the character
[int]
0 = not drown, 1 = drown (default)

This opcode allows the character, including the player, to not drown while in water. In Vice City, health will not be depleted. In San Andreas, NPCs will be able to swim on their own and the player's lung capacity will never run out.

Keywords

set, actor, character, water, drown