Difference between revisions of "016A"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{Icon|trilogy}} '''DO_FADE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = DO_FADE
: Fades the screen
+
| description = Fades the screen
'''Syntax'''
+
| syntax1    = 016A: fade [''int1''] [''int2''] ms
: 016A: fade [''int1''] [''int2''] ms
+
| syntax2    = fade [''int1''] [''int2'']
: fade [''int1''] [''int2'']
+
| p1t        = [''int1'']
'''Parameter'''
+
| p1d        = Fade stage (see below)
: [''int1'']
+
| p2t        = [''int2'']
:: Fade stage (see below)
+
| p2d        = Duration in milliseconds
: [''int2'']
+
}}
:: Duration in milliseconds
 
  
 
This opcode allows the screen to fade in and fade back out. The color of the fade can be set through opcode [[0169]]. The longer the time set to fade, the slower the screen will fade. As the screen fades in, game sounds will fade out, and vice versa. Use opcode [[043C]] to prevent game sounds from being affected. The game is unable to be paused as the screen fades.
 
This opcode allows the screen to fade in and fade back out. The color of the fade can be set through opcode [[0169]]. The longer the time set to fade, the slower the screen will fade. As the screen fades in, game sounds will fade out, and vice versa. Use opcode [[043C]] to prevent game sounds from being affected. The game is unable to be paused as the screen fades.
  
{| class="wikitable"
+
{|class="wikitable center-col-1"
! Stage || Enum
+
!Stage ||[[SCM language III/VC definitions#FADE|Enum]] ||Notes
 
|-
 
|-
| 0 || FADE_OUT
+
|0 ||FADE_OUT ||Fade out of game into color
 
|-
 
|-
| 1 || FADE_IN
+
|1 ||FADE_IN ||Fade out of color into game
 
|}
 
|}
  
 
== Keywords ==
 
== Keywords ==
 
do, fade
 
do, fade
 
[[Category:OpCodes]]
 

Revision as of 16:10, 30 May 2016

GTA III Vice City San Andreas DO_FADE


Description
Fades the screen
Syntax
016A: fade [int1] [int2] ms
fade [int1] [int2]
Parameter
[int1]
Fade stage (see below)
[int2]
Duration in milliseconds

This opcode allows the screen to fade in and fade back out. The color of the fade can be set through opcode 0169. The longer the time set to fade, the slower the screen will fade. As the screen fades in, game sounds will fade out, and vice versa. Use opcode 043C to prevent game sounds from being affected. The game is unable to be paused as the screen fades.

Stage Enum Notes
0 FADE_OUT Fade out of game into color
1 FADE_IN Fade out of color into game

Keywords

do, fade