Difference between revisions of "00FF"

From GTAMods Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 00FF=8,  %1d%  %8d%  %2d% %3d% %4d%  %5d% %6d% %7d%
+
| games      = {{Icon|t}}
| description = checks if an actor is at a specific place on foo. 
+
| command    = LOCATE_CHAR_ON_FOOT_3D
| p1          = any existing actor handle
+
| description = Checks if the character is located within the area while on foot
| p2          = unknown
+
| syntax1    = 00FF:   actor [''char handle''] [''int''] [''flt1''] [''flt2''] [''flt3''] radius [''flt4''] [''flt5''] [''flt6'']
| p3          = X-Coordinate
+
| p1t        = [''char handle'']
| p4          = Y-Coordinate
+
| p1d        = The handle of the character
| p5          = Z-Coordinate
+
| p2t        = [''flt1'']
| p6          = X-radius offset
+
| p2d        = X-coordinate
| p7          = Y-radius offset
+
| p3t        = [''flt2'']
| p8          = Z-radius offset
+
| p3d        = Y-coordinate
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| 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
 
}}
 
}}
This opcode checks if an actor is at a specific place on foot radius the set XYZ offset.
 
  
==Sanny Builder Example==
+
This conditional opcode returns true when the character is located within the area while on foot.
 
 
<source lang="scm">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</source>
 
  
 
==Keywords==
 
==Keywords==
check, sphere, actor
+
check, locate, sphere, marker, actor, character, coordinates

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