Difference between revisions of "04D8"
Jump to navigation
Jump to search
(page updates) |
|||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | games = {{Icon|VC}} {{Icon|SA}} |
− | | description = Sets the | + | | command = SET_CHAR_DROWNS_IN_WATER |
− | | | + | | description = Sets the character to drown in water |
− | | | + | | syntax1 = 04D8: set_actor [''char handle''] drown [''int''] |
− | + | | 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) | ||
}} | }} | ||
− | |||
− | ==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
- 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