Difference between revisions of "03BC"
(Created page with "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...") |
|||
(3 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 ▷ 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 ▷ Play video]</span> of scale 1.0.]] | ||
− | {{Icon| | + | {{OpCode |
− | < | + | | games = {{Icon|t}} |
− | + | | command = ADD_<wbr>SPHERE | |
− | + | | description = Creates a sphere | |
− | + | | syntax1 = 03BC: [''var''] = create_sphere [''flt1''] [''flt2''] [''flt3''] [''flt4''] | |
− | + | | p1t = [''flt1''] | |
− | + | | p1d = X-coordinate | |
− | + | | p2t = [''flt2''] | |
− | + | | p2d = Y-coordinate | |
− | + | | p3t = [''flt3''] | |
− | + | | p3d = Z-coordinate | |
− | + | | p4t = [''flt4''] | |
− | + | | p4d = Scale/diameter | |
− | + | | p5t = [''var''] | |
− | + | | p5d = 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. 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 | + | 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 |
− | |||
− |
Latest revision as of 00:35, 20 November 2016
- 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