Difference between revisions of "04F9"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
Line 1: Line 1:
{{OpCode
+
{{Icon|VC}} {{Icon|SA}} '''SET_EXTRA_COLOURS'''
| ini        = 04F9=2,%1h% %2h%
+
<hr />
| description = Sets the color of the sky
+
'''Description'''
| p1          = Color
+
: Sets the extra color of the sky
| p2          = Fade
+
'''Syntax'''
| game        = [[Vice City]], [[San Andreas]]
+
: 04F9: set_extracolors [''int1''] fade [''int2'']
}}
+
'''Parameter'''
This opcode sets the color of the sky. It was mainly used in [[interior]]s but it is not restricted to interiors; it can be used outside interiors. In Vice City, the colors are defined in the "Extracolours" section of the <code>[[timecyc.dat]]</code> file. Each line in the section corresponds to the color of the interior. Colors 1 through 24 are used. The second parameter determines if the color should instantly appear (0) or fade into appearance (1).
+
: [''int1'']
 +
:: Extra color
 +
: [''int2'']
 +
:: Fade
 +
 
 +
This opcode sets the extra color of the sky. It is mainly used in [[interior]]s in the original script but it can be used outside interiors. In Vice City, the colors are defined in the "Extracolours" section of the <code>[[timecyc.dat]]</code> file. Each line in the section corresponds to the color of the sky. Colors 1 through 24 are available. Values outside the range defined in the file produce weird effects. The second parameter determines if the color should instantly change (0) or set to the default sky briefly and then fade into change (1). Opcode [[04FA]] clears the extra color effect. The effect will carry into a new game so you have to explicitly clear the effect if you don't want it carried over. The extra color, fade, and whether extra color is active are saved in [[Saves (GTA VC)#Block 0: Simple Vars|block 0 of the save file]] in Vice City and [[Saves (GTA SA)#Block 0: Simple Vars|block 0]] in San Andreas.
 +
 
 +
== Keywords ==
 +
set, weather, sky, extra, color, colour
 +
 
 +
[[Category:OpCodes]]

Revision as of 04:06, 16 July 2015

Vice City San Andreas SET_EXTRA_COLOURS


Description

Sets the extra color of the sky

Syntax

04F9: set_extracolors [int1] fade [int2]

Parameter

[int1]
Extra color
[int2]
Fade

This opcode sets the extra color of the sky. It is mainly used in interiors in the original script but it can be used outside interiors. In Vice City, the colors are defined in the "Extracolours" section of the timecyc.dat file. Each line in the section corresponds to the color of the sky. Colors 1 through 24 are available. Values outside the range defined in the file produce weird effects. The second parameter determines if the color should instantly change (0) or set to the default sky briefly and then fade into change (1). Opcode 04FA clears the extra color effect. The effect will carry into a new game so you have to explicitly clear the effect if you don't want it carried over. The extra color, fade, and whether extra color is active are saved in block 0 of the save file in Vice City and block 0 in San Andreas.

Keywords

set, weather, sky, extra, color, colour