Difference between revisions of "0187"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
<hr />
 
<hr />
 
'''Description'''
 
'''Description'''
: Adds a radar [[blip]] and an arrow to the character
+
: Adds a [[blip]] and a marker to the character
 
'''Syntax'''
 
'''Syntax'''
 
: 0187: [''var''] = create_marker_above_actor [''char handle'']
 
: 0187: [''var''] = create_marker_above_actor [''char handle'']
 
: Marker.CreateAboveActor( [''var''], [''char handle''] )
 
: Marker.CreateAboveActor( [''var''], [''char handle''] )
 
'''Parameter'''
 
'''Parameter'''
 +
: [''char handle'']
 +
:: The handle of the character
 
: [''var'']
 
: [''var'']
 
:: Variable to store the handle of the blip
 
:: Variable to store the handle of the blip
: [''char handle'']
 
:: The handle of the character
 
  
This opcode creates a square blip in the radar denoting the location of the character and an arrow above the character. 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 character and a marker above the character. 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 [[0162]] but the properties of the blip are preset. The default properties of the blip, which can be changed using other opcodes, are:
 +
* [[0165|Color]]: 1 (green) 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 ==

Latest revision as of 00:16, 20 November 2016

0187 in action in Vice City

GTA III Vice City San Andreas ADD_BLIP_FOR_CHAR


Description

Adds a blip and a marker to the character

Syntax

0187: [var] = create_marker_above_actor [char handle]
Marker.CreateAboveActor( [var], [char handle] )

Parameter

[char handle]
The handle of the character
[var]
Variable to store the handle of the blip

This opcode adds a square blip in the radar denoting the location of the character and a marker above the character. 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 0162 but the properties of the blip are preset. The default properties of the blip, which can be changed using other opcodes, are:

  • Color: 1 (green) 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, actor, ped, character