Difference between revisions of "03BC"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
[[File:VC sphere.png|thumb|300px|Spheres in Vice City of varying scale, from left to right: 2.0, 1.5, 1.0, 0.5. Each sphere is spaced 2.0 meters apart. <span class="plainlinks">[http://spaceeinstein.altervista.org/media/sphere.ogg &#x25b7; Play video]</span> of scale 1.0.]]
 
[[File:VC sphere.png|thumb|300px|Spheres in Vice City of varying scale, from left to right: 2.0, 1.5, 1.0, 0.5. Each sphere is spaced 2.0 meters apart. <span class="plainlinks">[http://spaceeinstein.altervista.org/media/sphere.ogg &#x25b7; Play video]</span> of scale 1.0.]]
{{Icon|trilogy}} '''ADD_SPHERE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = ADD_<wbr>SPHERE
: Creates a sphere
+
| description = Creates a sphere
'''Syntax'''
+
| syntax1    = 03BC: [''var''] = create_sphere [''flt1''] [''flt2''] [''flt3''] [''flt4'']
: 03BC: [''var''] = create_sphere [''flt1''] [''flt2''] [''flt3''] [''flt4'']
+
| p1t        = [''flt1'']
'''Parameter'''
+
| p1d        = X-coordinate
: [''var'']
+
| p2t        = [''flt2'']
:: Variable to store the handle of the sphere
+
| p2d        = Y-coordinate
: [''flt1'']
+
| p3t        = [''flt3'']
:: X-coordinate
+
| p3d        = Z-coordinate
: [''flt2'']
+
| p4t        = [''flt4'']
:: Y-coordinate
+
| p4d        = Scale/diameter
: [''flt3'']
+
| p5t        = [''var'']
:: Z-coordinate
+
| p5d        = Variable to store the handle of the sphere
: [''flt4'']
+
}}
:: Scale/diameter
 
  
This opcode creates a "sphere", which is a translucent cylinder that pulsates in size. The sphere serves only as a visual marker; it is not interactable. The center of the sphere will always place itself directly on the ground and cannot float in the air. The larger the scale value is, the larger the sphere. Negative values are actually valid; they just invert the sphere. Legacy documentation describes the scale as a "radius" but a value of 1.0 will create a sphere with a diameter of 1.0. In GTA III the color is blue, in Vice City it is pink, and in San Andreas it is red. The sphere can be removed by calling [[03BD]]. When recreating a sphere after you removed it, you must wait until the sphere visually disappears before creating another one or else the new sphere would not update to its recreated properties. When creating a sphere you must be careful not to lose the reference to the sphere. If you lose the reference and save the game, there is no way to destroy it other than editing the save file or memory hacking.
+
This opcode creates a "sphere", which is a translucent cylinder that pulsates in size. The sphere serves only as a visual marker; it is not interactable. The center of the sphere will always place itself directly on the ground and cannot float in the air. The larger the scale value is, the larger the sphere. Negative values are actually valid; they just invert the sphere. Legacy documentation describes the scale as a "radius" but a value of 1.0 will create a sphere with a diameter of 1.0. In GTA III the color is blue, in Vice City it is pink, and in San Andreas it is red.
 +
 
 +
A maximum of 16 spheres can be physically created at a time but a smaller number of spheres can be visible at a time in the world. Spheres created by other opcodes like [[02A7]] also limits the number of visible spheres in the world. When the visual limit is passed, spheres can still be physically created but they will not be visible. Removing the visibility of one sphere can cause the visibility of another sphere to be restored.
 +
 
 +
The sphere can be removed by calling [[03BD]]. When recreating a sphere after you removed it, you must wait until the sphere visually disappears before creating another one or else the new sphere would not update to its recreated properties.
  
 
== Keywords ==
 
== Keywords ==
add, create, sphere, cylinder
+
add, create, sphere, cylinder, marker
 
 
[[Category:OpCodes]]
 

Latest revision as of 00:35, 20 November 2016

Spheres in Vice City of varying scale, from left to right: 2.0, 1.5, 1.0, 0.5. Each sphere is spaced 2.0 meters apart. ▷ Play video of scale 1.0.

GTA III Vice City San Andreas ADD_SPHERE


Description
Creates a sphere
Syntax
03BC: [var] = create_sphere [flt1] [flt2] [flt3] [flt4]
Parameter
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate
[flt4]
Scale/diameter
[var]
Variable to store the handle of the sphere

This opcode creates a "sphere", which is a translucent cylinder that pulsates in size. The sphere serves only as a visual marker; it is not interactable. The center of the sphere will always place itself directly on the ground and cannot float in the air. The larger the scale value is, the larger the sphere. Negative values are actually valid; they just invert the sphere. Legacy documentation describes the scale as a "radius" but a value of 1.0 will create a sphere with a diameter of 1.0. In GTA III the color is blue, in Vice City it is pink, and in San Andreas it is red.

A maximum of 16 spheres can be physically created at a time but a smaller number of spheres can be visible at a time in the world. Spheres created by other opcodes like 02A7 also limits the number of visible spheres in the world. When the visual limit is passed, spheres can still be physically created but they will not be visible. Removing the visibility of one sphere can cause the visibility of another sphere to be restored.

The sphere can be removed by calling 03BD. When recreating a sphere after you removed it, you must wait until the sphere visually disappears before creating another one or else the new sphere would not update to its recreated properties.

Keywords

add, create, sphere, cylinder, marker