Difference between revisions of "04F9"
(page updates) |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{Icon|VC}} {{Icon|SA}} '''SET_EXTRA_COLOURS''' |
− | + | <hr /> | |
− | + | '''Description''' | |
− | + | : Sets the extra color of the sky | |
− | + | '''Syntax''' | |
− | + | : 04F9: set_extracolors [''int1''] fade [''int2''] | |
− | + | '''Parameter''' | |
− | This opcode sets the color of the sky. It | + | : [''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
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