Difference between revisions of "0053"

From GTAMods Wiki
Jump to navigation Jump to search
m
(added example screenshot)
Line 1: Line 1:
 +
[[File:Gta3_0053.jpg|thumb|Multiple players in GTA III]]
 
{{Icon|trilogy}} '''CREATE_PLAYER'''
 
{{Icon|trilogy}} '''CREATE_PLAYER'''
 
<hr />
 
<hr />
Line 20: Line 21:
 
: [[CREATE_PLAYER]]
 
: [[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 is 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. 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 is 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 on the picture). The old character will not despawn but you still have some control of old player character(s).
  
 
== Keywords ==
 
== Keywords ==

Revision as of 18:08, 2 February 2015

Multiple players in GTA III

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

[var]
Variable to store the handle of the player
[int]
Character model ID number as defined in the PEDS section of the IDE file; always 0 or, using the model's DFF name with a hash character, #NULL
[flt1]
X-coordinate
[flt2]
Y-coordinate
[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 is 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 on the picture). The old character will not despawn but you still have some control of old player character(s).

Keywords

create, spawn, player, character