Difference between revisions of "0053"

From GTAMods Wiki
Jump to navigation Jump to search
m
(Use template and fix player id argument description.)
Line 1: Line 1:
[[File:Gta3_0053.jpg|thumb|Multiple player characters in GTA III]]
+
{{OpCode
{{Icon|trilogy}} '''CREATE_PLAYER'''
+
| games      = {{Icon|t}}
<hr />
+
| command    = CREATE_PLAYER
'''Description'''
+
| description = Spawns the player character into the game world
: Spawns the player character into the game world
+
| syntax1    = 0053: [''var''] = create_player [''int''] at [''flt1''] [''flt2''] [''flt3'']
'''Syntax'''
+
| syntax2    = [''var''] = Player.Create( [''int''], [''flt1''], [''flt2''], [''flt3''] )
: 0053: [''var''] = create_player [''int''] at [''flt1''] [''flt2''] [''flt3'']
+
| p1t        = [''int'']
: [''var''] = Player.Create( [''int''], [''flt1''], [''flt2''], [''flt3''] )
+
| p1d        = Index of the player to be created, usually 0.
'''Parameter'''
+
| p2t        = [''flt1'']
: [''var'']
+
| p2d        = X-coordinate
:: Variable to store the handle of the player
+
| p3t        = [''flt2'']
: [''int'']
+
| p3d        = Y-coordinate
:: Character model ID number as defined in the [[PEDS|PEDS section]] of the [[IDE]] file; always 0 or, using the model's [[DFF]] name with a hash character, #NULL
+
| p4t        = [''flt3'']
: [''flt1'']
+
| p4d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]])
:: X-coordinate
+
| p5t        = [''var'']
: [''flt2'']
+
| p5d        = Variable to store the handle of the player
:: Y-coordinate
+
| native      = [[CREATE_PLAYER]]
: [''flt3'']
+
}}
:: Z-coordinate
 
'''Native analog'''
 
: [[CREATE_PLAYER]]
 
  
 
This opcode spawns the player character into the game world. The player character is the character that you control in the game (Claude in GTA III, Tommy Vercetti in Vice City, Carl Johnson in San Andreas, etc.) This opcode is required in order to start a new game but is only needed to run once. Although not recommended, using this opcode again will respawn the player character and reassign control to the new character (as seen in the picture).  The old character will not despawn but you still have some control of old player character(s).
 
This opcode spawns the player character into the game world. The player character is the character that you control in the game (Claude in GTA III, Tommy Vercetti in Vice City, Carl Johnson in San Andreas, etc.) This opcode is required in order to start a new game but is only needed to run once. Although not recommended, using this opcode again will respawn the player character and reassign control to the new character (as seen in the picture).  The old character will not despawn but you still have some control of old player character(s).
Line 25: Line 22:
 
== Keywords ==
 
== Keywords ==
 
create, spawn, player, character
 
create, spawn, player, character
 
[[Category:OpCodes]]
 

Revision as of 23:21, 19 November 2016

GTA III Vice City San Andreas CREATE_PLAYER


Description
Spawns the player character into the game world
Syntax
0053: [var] = create_player [int] at [flt1] [flt2] [flt3]
[var] = Player.Create( [int], [flt1], [flt2], [flt3] )
Parameter
[int]
Index of the player to be created, usually 0.
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z)
[var]
Variable to store the handle of the player
Native analog
CREATE_PLAYER

This opcode spawns the player character into the game world. The player character is the character that you control in the game (Claude in GTA III, Tommy Vercetti in Vice City, Carl Johnson in San Andreas, etc.) This opcode is required in order to start a new game but is only needed to run once. Although not recommended, using this opcode again will respawn the player character and reassign control to the new character (as seen in the picture). The old character will not despawn but you still have some control of old player character(s).

Keywords

create, spawn, player, character