Difference between revisions of "00FF"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== '''00FF''' ==
+
{{OpCode
 +
| games      = {{Icon|t}}
 +
| command    = LOCATE_CHAR_ON_FOOT_3D
 +
| description = Checks if the character is located within the area while on foot
 +
| syntax1    = 00FF:   actor [''char handle''] [''int''] [''flt1''] [''flt2''] [''flt3''] radius [''flt4''] [''flt5''] [''flt6'']
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 +
| p2t        = [''flt1'']
 +
| p2d        = X-coordinate
 +
| p3t        = [''flt2'']
 +
| p3d        = Y-coordinate
 +
| p4t        = [''flt3'']
 +
| p4d        = Z-coordinate
 +
| p5t        = [''flt4'']
 +
| p5d        = X-radius
 +
| p6t        = [''flt5'']
 +
| p6d        = Y-radius
 +
| p7t        = [''flt6'']
 +
| p7d        = Z-radius
 +
| p8t        = [''int'']
 +
| p8d        = Highlight area with marker
 +
}}
  
'''Number of parameters:''' 8
+
This conditional opcode returns true when the character is located within the area while on foot.
  
'''Works in:''' <br> SA
+
==Keywords==
 
+
check, locate, sphere, marker, actor, character, coordinates
'''User'''
 
 
 
CyQ
 
 
 
'''Example'''
 
 
 
00FF:  actor $PLAYER_ACTOR sphere 0 in_sphere $X_JOHNSON_HOUSE $Y_JOHNSON_HOUSE $Z_JOHNSON_HOUSE radius 1.0 1.0 2.0 on_foot
 
 
 
'''Notes'''
 
 
 
Apparently unused in GTA SA, but i have seen it used in a script.
 
 
 
[[Category:OpCodes]]
 

Latest revision as of 23:36, 19 November 2016

GTA III Vice City San Andreas LOCATE_CHAR_ON_FOOT_3D


Description
Checks if the character is located within the area while on foot
Syntax
00FF:   actor [char handle] [int] [flt1] [flt2] [flt3] radius [flt4] [flt5] [flt6]
Parameter
[char handle]
The handle of the character
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate
[flt4]
X-radius
[flt5]
Y-radius
[flt6]
Z-radius
[int]
Highlight area with marker

This conditional opcode returns true when the character is located within the area while on foot.

Keywords

check, locate, sphere, marker, actor, character, coordinates