Difference between revisions of "0523"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} '''HAS_GLASS_BEEN_SHATTERED_NEARBY''' <hr /> '''Description''' : Checks if glass has been shattered near the specified location '''Syntax''' : 0523:   glass_b...")
 
m
 
Line 1: Line 1:
{{Icon|VC}} '''HAS_GLASS_BEEN_SHATTERED_NEARBY'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = HAS_GLASS_BEEN_SHATTERED_NEARBY
: Checks if glass has been shattered near the specified location
+
| description = Checks if glass has been shattered near the specified location
'''Syntax'''
+
| syntax1    = 0523: &nbsp; glass_been_shattered_near [''flt1''] [''flt2''] [''flt3'']
: 0523: &nbsp; glass_been_shattered_near [''flt1''] [''flt2''] [''flt3'']
+
| p1t        = [''flt1'']
'''Parameter'''
+
| p1d        = X-coordinate
: [''flt1'']
+
| p2t        = [''flt2'']
:: X-coordinate
+
| p2d        = Y-coordinate
: [''flt2'']
+
| p3t        = [''flt3'']
:: Y-coordinate
+
| p3d        = Z-coordinate
: [''flt3'']
+
}}
:: Z-coordinate
 
  
This opcode returns true if a glass map object has been shattered near the specified location. The opcode detects any glass within a 20-unit radius to the center of the glass. If there are more than one glass within the radius, glass that is closest to the coordinates point takes the highest priority. The [[Main.scm|original script]] called this opcode during "Shakedown."
+
This conditional opcode returns true if a glass map object has been shattered near the specified location. The opcode detects any glass within a 20-unit radius to the center of the glass. If there is more than one glass within the radius, glass that is closest to the coordinates point takes the highest priority. The [[Main.scm|original script]] called this opcode during "Shakedown."
  
 
== Keywords ==
 
== Keywords ==
 
check, glass, shatter, shattered
 
check, glass, shatter, shattered
 
[[Category:OpCodes]]
 

Latest revision as of 05:51, 22 December 2016

Vice City HAS_GLASS_BEEN_SHATTERED_NEARBY


Description
Checks if glass has been shattered near the specified location
Syntax
0523:   glass_been_shattered_near [flt1] [flt2] [flt3]
Parameter
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate

This conditional opcode returns true if a glass map object has been shattered near the specified location. The opcode detects any glass within a 20-unit radius to the center of the glass. If there is more than one glass within the radius, glass that is closest to the coordinates point takes the highest priority. The original script called this opcode during "Shakedown."

Keywords

check, glass, shatter, shattered