Difference between revisions of "0187"

From GTAMods Wiki
Jump to navigation Jump to search
m
(page updates)
Line 1: Line 1:
 
[[File:0187.jpg|thumb|0187 in action in Vice City]]
 
[[File:0187.jpg|thumb|0187 in action in Vice City]]
{{OpCode
+
{{Icon|trilogy}} '''ADD_BLIP_FOR_CHAR'''
| ini        = 0187=2,{{Hint|%2d%|parameter 2: blip handle}} {{Hint|%1d%|parameter 1: character handle}}
+
<hr />
| description = Creates a blip and an arrow on the character
+
'''Description'''
| p1          = Existing character handle
+
: Adds a radar [[blip]] and an arrow to the character
| p2          = Blip handle
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0187: [''var''] = create_marker_above_actor [''car handle'']
}}
+
: Marker.CreateAboveActor( [''var''], [''char handle''] )
This opcode creates a square blip denoting the location of the character and an arrow above the character. In GTA III the arrow would be blue, in Vice City it would be pink, and in San Andreas it would be red. The default size of the blip (usually set by opcode [[0168]]) is 3. The blip and arrow can be removed using opcode [[0164]]. Note that the parameters are swapped.
+
'''Parameter'''
[[Sanny Builder]] example:<source lang="scm">0187: 1@ = create_marker_above_actor 0@</source>
+
: [''var'']
 +
:: Variable to store the handle of the blip
 +
: [''char handle'']
 +
:: The handle of the character
  
==Notes==
+
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]].
The above format is more commonly used. The actual format of this opcode is in order:<br>
 
<code>0187=2,%1d% %2d%</code><br>
 
The format to use depends on which INI file you use.
 
  
In Sanny Builder, this opcode is equivalent to the command '''Marker.CreateAboveActor'''.
+
== Keywords ==
Example: <source lang="scm">Marker.CreateAboveActor(1@, 0@)</source>
 
 
 
==Keywords==
 
 
create, set, marker, blip, arrow, actor, ped, character
 
create, set, marker, blip, arrow, actor, ped, character
  
==See also==
+
[[Category:OpCodes]]
*[[0186]] - For vehicles
 
*[[0188]] - For objects
 

Revision as of 22:06, 2 June 2015

0187 in action in Vice City

GTA III Vice City San Andreas ADD_BLIP_FOR_CHAR


Description

Adds a radar blip and an arrow to the character

Syntax

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

Parameter

[var]
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.

Keywords

create, set, marker, blip, arrow, actor, ped, character