Difference between revisions of "0186"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
<hr />
 
<hr />
 
'''Description'''
 
'''Description'''
: Adds a radar blip and an arrow to the vehicle
+
: Adds a [[blip]] and a marker to the vehicle
 
'''Syntax'''
 
'''Syntax'''
 
: 0186: [''var''] = create_marker_above_car [''car handle'']
 
: 0186: [''var''] = create_marker_above_car [''car handle'']
 
: [''var''] = Marker.CreateAboveCar( [''car handle''] )
 
: [''var''] = Marker.CreateAboveCar( [''car handle''] )
 
'''Parameter'''
 
'''Parameter'''
 +
: [''car handle'']
 +
:: The handle of the vehicle
 
: [''var'']
 
: [''var'']
 
:: Variable to store the handle of the blip
 
:: Variable to store the handle of the blip
: [''car handle'']
 
:: The handle of the vehicle
 
  
This opcode creates a square blip in the radar denoting the location of the vehicle and an arrow above the vehicle. In GTA III the arrow is blue, in Vice City it is pink, and in San Andreas it is red. The default size of the blip (usually set by opcode [[0168]]) is 3. The blip and arrow can be removed using opcode [[0164]].
+
This opcode adds a square blip in the radar denoting the location of the vehicle and a marker above the vehicle. In GTA III the arrow is blue, in Vice City it is pink, and in San Andreas it is red. The opcode is almost equivalent to [[0161]] but the properties of the blip are preset. The default properties of the blip, which can be changed using other opcodes, are:
 +
* [[0165|Color]]: 0 (red) in GTA III and 4 (yellow) in Vice City
 +
* [[0168|Scale]]: 3
 +
* [[018B|Display]]: 3 (both blip and marker)
 +
Both the blip and marker can be removed using opcode [[0164]].
  
 
== Keywords ==
 
== Keywords ==
 
create, set, marker, blip, arrow, car, vehicle
 
create, set, marker, blip, arrow, car, vehicle
 
== See also ==
 
*[[0187]], for characters
 
*[[0188]], for objects
 
*[[0189]], for contact point
 
*[[018A]], for coord
 
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 00:15, 20 November 2016

0186 in action in Vice City

GTA III Vice City San Andreas ADD_BLIP_FOR_CAR


Description

Adds a blip and a marker to the vehicle

Syntax

0186: [var] = create_marker_above_car [car handle]
[var] = Marker.CreateAboveCar( [car handle] )

Parameter

[car handle]
The handle of the vehicle
[var]
Variable to store the handle of the blip

This opcode adds a square blip in the radar denoting the location of the vehicle and a marker above the vehicle. In GTA III the arrow is blue, in Vice City it is pink, and in San Andreas it is red. The opcode is almost equivalent to 0161 but the properties of the blip are preset. The default properties of the blip, which can be changed using other opcodes, are:

  • Color: 0 (red) in GTA III and 4 (yellow) in Vice City
  • Scale: 3
  • Display: 3 (both blip and marker)

Both the blip and marker can be removed using opcode 0164.

Keywords

create, set, marker, blip, arrow, car, vehicle