Difference between revisions of "0188"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with 'thumb|0188 in action in Vice City {{OpCode | ini = 0188=2,{{Hint|%2d%|parameter 2: blip handle}} {{Hint|%1d%|parameter 1: object handle}} | description …')
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[File:0188.jpg|thumb|0188 in action in Vice City]]
 
[[File:0188.jpg|thumb|0188 in action in Vice City]]
{{OpCode
+
{{Icon|trilogy}} '''ADD_BLIP_FOR_OBJECT'''
| ini        = 0188=2,{{Hint|%2d%|parameter 2: blip handle}} {{Hint|%1d%|parameter 1: object handle}}
+
<hr />
| description = Creates a blip and an arrow on the object
+
'''Description'''
| p1          = Existing object handle
+
: Adds a [[blip]] and a marker to the object
| p2          = Blip handle
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0188: [''var''] = create_marker_above_object [''object handle'']
}}
+
'''Parameter'''
This opcode creates a square blip denoting the location of the object and an arrow above the object. 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.
+
: [''object handle'']
[[Sanny Builder]] example:<source lang="scm">0188: 1@ = create_marker_above_object 0@</source>
+
:: The handle of the object
 +
: [''var'']
 +
:: Variable to store the handle of the blip
  
==Notes==
+
This opcode adds a square blip in the radar denoting the location of the object and a marker above the object. 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 [[0163]] but the properties of the blip are preset. The default properties of the blip, which can be changed using other opcodes, are:
The above format is more commonly used. The actual format of this opcode is in order:<br>
+
* [[0165|Color]]: 6 (cyan) in GTA III and 4 (yellow) in Vice City
<code>0188=2,%1d% %2d%</code><br>
+
* [[0168|Scale]]: 3
The format to use depends on which INI file you use.
+
* [[018B|Display]]: 3 (both blip and marker)
 +
Both the blip and marker can be removed using opcode [[0164]].
  
In Sanny Builder, this opcode is equivalent to the command '''Marker.CreateAboveObject'''.
+
== Keywords ==
Example: <source lang="scm">Marker.CreateAboveObject(1@, 0@)</source>
 
 
 
==Keywords==
 
 
create, set, marker, blip, arrow, object
 
create, set, marker, blip, arrow, object
  
==See also==
+
[[Category:OpCodes]]
*[[0186]] - For vehicles
 
*[[0187]] - For characters
 

Latest revision as of 00:16, 20 November 2016

0188 in action in Vice City

GTA III Vice City San Andreas ADD_BLIP_FOR_OBJECT


Description

Adds a blip and a marker to the object

Syntax

0188: [var] = create_marker_above_object [object handle]

Parameter

[object handle]
The handle of the object
[var]
Variable to store the handle of the blip

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

  • Color: 6 (cyan) 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, object