Difference between revisions of "00A1"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''SET_CHAR_COORDINATES'''
| ini        = 00A1=4,%1d% %2d% %3d% %4d%
+
<hr />
| description = Sets the character at a coordinate
+
'''Description'''
| p1          = Actor handle
+
: Puts the character at a coordinate
| p2          = X-coordinate
+
'''Syntax'''
| p3          = Y-coordinate
+
: 00A1: put_actor [''char handle''] at [''float1''] [''float2''] [''float3'']
| p4          = Z-coordinate
+
'''Parameter'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]], [[Liberty City Stories]], [[Vice City Stories]] (0044)
+
: [''char handle'']
| native      = [[SET_CHAR_COORDINATES]]
+
:: The handle of the character
}}
+
: [''float1'']
This places the character at a coordinate. The character's feet is the point where the character will be placed by. If the character is in a vehicle, the vehicle will also move along with the character. Oddly, it places the character about -1.0 z offset from the opcode that gets the character's coordinates, opcode [[00A0]].
+
:: X-coordinate
 +
: [''float2'']
 +
:: Y-coordinate
 +
: [''float3'']
 +
:: Z-coordinate
 +
'''Native analog'''
 +
: [[SET_CHAR_COORDINATES]]
  
==Sanny Builder Example==
+
This places the character at a coordinate. The character's feet is the point where the character will be placed by. A value of -100.0 for z-coordinate places the character exactly on the ground. If the character is in a vehicle, the vehicle will also move along with the character.
  
<source lang="scm">00A1: put_actor $PLAYER_ACTOR at 345.5621 306.2212 998.4484</source>
+
== Keywords ==
 +
put, place, actor, character
  
==Keywords==
+
== See also ==
put, place, actor, character
+
* [[00A0]], gets the character's coordinates
 +
* [[0055]], sets the player's coordinates
 +
* [[00AB]], sets the vehicle's coordinates
 +
* [[01BC]], sets the object's coordinates
 +
* [[0972]], sets the character's center of mass coordinates
 +
 
 +
[[Category:OpCodes]]

Revision as of 10:57, 16 June 2015

GTA III Vice City San Andreas SET_CHAR_COORDINATES


Description

Puts the character at a coordinate

Syntax

00A1: put_actor [char handle] at [float1] [float2] [float3]

Parameter

[char handle]
The handle of the character
[float1]
X-coordinate
[float2]
Y-coordinate
[float3]
Z-coordinate

Native analog

SET_CHAR_COORDINATES

This places the character at a coordinate. The character's feet is the point where the character will be placed by. A value of -100.0 for z-coordinate places the character exactly on the ground. If the character is in a vehicle, the vehicle will also move along with the character.

Keywords

put, place, actor, character

See also

  • 00A0, gets the character's coordinates
  • 0055, sets the player's coordinates
  • 00AB, sets the vehicle's coordinates
  • 01BC, sets the object's coordinates
  • 0972, sets the character's center of mass coordinates