Difference between revisions of "0166"

From GTAMods Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Icon|trilogy}} '''DIM_BLIP'''
+
{{Icon|3}} {{Icon|VC}} '''DIM_BLIP'''
 
<hr />
 
<hr />
 
'''Description'''
 
'''Description'''
Line 6: Line 6:
 
: 0166: set_marker [''blip handle''] brightness_to [''int'']
 
: 0166: set_marker [''blip handle''] brightness_to [''int'']
 
'''Parameter'''
 
'''Parameter'''
 +
: [''blip handle'']
 +
:: The handle of the blip
 
: [''int'']
 
: [''int'']
 
:: {{hint|0|or any value other than 1}} = normal, 1 = dim
 
:: {{hint|0|or any value other than 1}} = normal, 1 = dim
Line 11: Line 13:
 
: [[DIM_BLIP]]
 
: [[DIM_BLIP]]
  
This opcode dims the brightness of the blip by halving all three RGB color values of the blip. For example, if the blip's color is normally (255,0,255), dimming the blip will produce a blip with color (127,0,127).
+
This opcode dims the brightness of the blip. The resulting color is determined by a [[0165#Blip colors|predefined list]] and the color of the normal blip. It essentially halves all three RGB color values of the blip. For example, if the blip's color is normally (255,0,255), dimming the blip will produce a blip with color (127,0,127). It has no effect on sprites.
  
 
== Keywords ==
 
== Keywords ==
blip, marker, dim, bright
+
set, blip, marker, dim, bright, brightness
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 04:18, 29 August 2015

GTA III Vice City DIM_BLIP


Description

Dims the specified blip

Syntax

0166: set_marker [blip handle] brightness_to [int]

Parameter

[blip handle]
The handle of the blip
[int]
0 = normal, 1 = dim

Native analog

DIM_BLIP

This opcode dims the brightness of the blip. The resulting color is determined by a predefined list and the color of the normal blip. It essentially halves all three RGB color values of the blip. For example, if the blip's color is normally (255,0,255), dimming the blip will produce a blip with color (127,0,127). It has no effect on sprites.

Keywords

set, blip, marker, dim, bright, brightness