Difference between revisions of "0055"

From GTAMods Wiki
Jump to navigation Jump to search
m
(page updates)
Line 1: Line 1:
<code>0055=4,%1d% %2d% %3d% %4d%</code><br>
+
{{Icon|3}} {{Icon|VC}} '''SET_PLAYER_COORDINATES'''
'''Description''': Puts a player at given coordinates<br>
+
<hr />
'''Parameter 1''': a player handle<br>
+
'''Description'''
'''Parameter 2''': X-coordinate<br>
+
: Sets the player's coordinates point
'''Parameter 3''': Y-coordinate<br>
+
'''Syntax'''
'''Parameter 4''': Z-coordinate<br>
+
: 0055: put_player [''player handle''] at [''flt1''] [''flt2''] [''flt3'']
'''Supports''': GTA3, Vice City<br>
+
'''Parameter'''
 +
: [''player handle'']
 +
:: The [[0053|handle of the player]]
 +
: [''flt1'']
 +
:: X-coordinate
 +
: [''flt2'']
 +
:: Y-coordinate
 +
: [''flt3'']
 +
:: Z-coordinate (or ''-100.0'' for [[02CE|ground z]])
  
This opcode immediately moves the player at position with given coordinates. In GTA: San Andreas this opcode is unsupported, use [[00A1]] instead, or [[08C7]], [[0972]], [[09BC]].
+
This opcode sets the player's coordinates point by warping the player character to the location. The player's feet is the point where the player character will be placed by. If the player is in a vehicle, the vehicle will also move along with the player.
  
==Keywords==
+
== Keywords ==
put, place, player
+
put, place, warp, set, player, position, coordinates
 +
 
 +
== See also ==
 +
* {{Icon|3}} {{Icon|VC}} [[0054]], gets the player's coordinates
 +
* {{Icon|t}} [[00A1]], sets the character's coordinates
 +
* {{Icon|t}} [[00AB]], sets the vehicle's coordinates
 +
* {{Icon|t}} [[01BC]], sets the object's coordinates
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 06:25, 7 December 2015

GTA III Vice City SET_PLAYER_COORDINATES


Description

Sets the player's coordinates point

Syntax

0055: put_player [player handle] at [flt1] [flt2] [flt3]

Parameter

[player handle]
The handle of the player
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or -100.0 for ground z)

This opcode sets the player's coordinates point by warping the player character to the location. The player's feet is the point where the player character will be placed by. If the player is in a vehicle, the vehicle will also move along with the player.

Keywords

put, place, warp, set, player, position, coordinates

See also

  • GTA III Vice City 0054, gets the player's coordinates
  • GTA III Vice City San Andreas 00A1, sets the character's coordinates
  • GTA III Vice City San Andreas 00AB, sets the vehicle's coordinates
  • GTA III Vice City San Andreas 01BC, sets the object's coordinates