Difference between revisions of "03BC"

From GTAMods Wiki
Jump to navigation Jump to search
(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...")
 
m
Line 8: Line 8:
 
'''Parameter'''
 
'''Parameter'''
 
: [''var'']
 
: [''var'']
:: The handle of the sphere
+
:: Variable to store the handle of the sphere
 
: [''flt1'']
 
: [''flt1'']
 
:: X-coordinate
 
:: X-coordinate

Revision as of 06:41, 5 January 2015

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

[var]
Variable to store the handle of the sphere
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate
[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.

Keywords

add, create, sphere, cylinder