Difference between revisions of "0570"

From GTAMods Wiki
Jump to navigation Jump to search
(updates)
 
Line 1: Line 1:
{{Icon|VC}} {{Icon|SA}} '''ADD_SHORT_RANGE_SPRITE_BLIP_FOR_CONTACT_POINT'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Description'''
+
| command    = ADD_<wbr>SHORT_<wbr>RANGE_<wbr>SPRITE_<wbr>BLIP_<wbr>FOR_<wbr>CONTACT_<wbr>POINT
: Creates a sprite [[blip]] at the coordinates specified.
+
| description = Adds a short range sprite [[blip]] to the contact point
'''Syntax'''
+
| syntax1    = 0570: [''var''] = create_asset_radar_marker_with_icon [''int''] at [''flt1''] [''flt2''] [''flt3'']
: 0570: &nbsp; [''blip handle''] = create_asset_radar_marker_with_icon [int] at [flt1] [flt2] [flt3]
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = [[Blip#List of sprites|Sprite id]]
: [''int'']
+
| p2t        = [''flt1'']
:: [[Blip#List of sprites|Sprite id]]
+
| p2d        = X-coordinate
: [''flt1'']
+
| p3t        = [''flt2'']
:: X-coordinate
+
| p3d        = Y-coordinate
: [''flt2'']
+
| p4t        = [''flt3'']
:: Y-coordinate
+
| p4d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]])
: [''flt3'']
+
| p5t        = [''var'']
:: Z-coordinate (or ''-100.0'' for [[02CE|ground z]])
+
| p5d        = Variable to store the handle of the blip
: [''blip handle'']
+
}}
:: The handle of the blip
 
'''Native analog'''
 
: [[CREATE_ASSET_RADAR_MARKER_WITH_ICON]]
 
  
This opcode creates a specified blip and sphere at given coordinates. It is only visible on the radar when in range and adds a sphere at the coordinates.
+
This opcode adds a sprite blip in the radar to the contact point and a marker at the point. The blip's short range means it disappears from the radar if it is outside the radar's range; the blip still appears in the pause menu's map. The blip and marker disappear entirely during [[0180|missions]] and reappear when the mission ends.
  
 
== Keywords ==
 
== Keywords ==
blip, marker, display, contact, asset
+
create, set, marker, blip, display, contact, point, asset, radar
 
 
[[Category:OpCodes]]
 

Latest revision as of 11:53, 26 November 2016

Vice City San Andreas ADD_SHORT_RANGE_SPRITE_BLIP_FOR_CONTACT_POINT


Description
Adds a short range sprite blip to the contact point
Syntax
0570: [var] = create_asset_radar_marker_with_icon [int] at [flt1] [flt2] [flt3]
Parameter
[int]
Sprite id
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z)
[var]
Variable to store the handle of the blip

This opcode adds a sprite blip in the radar to the contact point and a marker at the point. The blip's short range means it disappears from the radar if it is outside the radar's range; the blip still appears in the pause menu's map. The blip and marker disappear entirely during missions and reappear when the mission ends.

Keywords

create, set, marker, blip, display, contact, point, asset, radar