Difference between revisions of "01B1"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
 
Line 2: Line 2:
 
| games      = {{Icon|3}} {{Icon|VC}}
 
| games      = {{Icon|3}} {{Icon|VC}}
 
| command    = GIVE_WEAPON_TO_PLAYER
 
| command    = GIVE_WEAPON_TO_PLAYER
| description = Gives a weapon to the player
+
| description = Gives the [[weapon]] to the player
 
| syntax1    = 01B1: give_player [''player handle''] weapon [''int1''] ammo [''int2'']
 
| syntax1    = 01B1: give_player [''player handle''] weapon [''int1''] ammo [''int2'']
 
| p1t        = [''player handle'']
 
| p1t        = [''player handle'']
 
| p1d        = The [[0053|handle of the player]]
 
| p1d        = The [[0053|handle of the player]]
 
| p2t        = [''int1'']
 
| p2t        = [''int1'']
| p2d        = [[Weapon#Lists of Weapons|Weapon number]]
+
| p2d        = [[Weapon#Lists of weapons|Weapon type]]
 
| p3t        = [''int2'']
 
| p3t        = [''int2'']
 
| p3d        = Ammo
 
| p3d        = Ammo
 
}}
 
}}
  
This opcode adds to your weapon ammo and sets the weapon as the current one for you. If you do not have the weapon, the weapon is given to you and replaces any weapon of the same group. Using this opcode requires loading the weapon model through [[0247]] or else the weapon might not be visible which can crash the game.
+
This opcode adds to your weapon ammo and sets the weapon as the current one for you. If you do not have the weapon, the weapon is given to you and replaces any weapon of the same slot. Using this opcode requires loading the weapon model through [[0247]] or else the weapon might not be visible which can crash the game.
  
 
== Keywords ==
 
== Keywords ==
Line 19: Line 19:
 
== See also ==
 
== See also ==
 
* {{Icon|3}} {{Icon|VC}} [[017A]], sets the player's weapon ammo
 
* {{Icon|3}} {{Icon|VC}} [[017A]], sets the player's weapon ammo
* {{Icon|t}} [[01B2]], gives a weapon to a character
+
* {{Icon|t}} [[01B2]], gives the weapon to the character

Latest revision as of 19:31, 7 July 2017

GTA III Vice City GIVE_WEAPON_TO_PLAYER


Description
Gives the weapon to the player
Syntax
01B1: give_player [player handle] weapon [int1] ammo [int2]
Parameter
[player handle]
The handle of the player
[int1]
Weapon type
[int2]
Ammo

This opcode adds to your weapon ammo and sets the weapon as the current one for you. If you do not have the weapon, the weapon is given to you and replaces any weapon of the same slot. Using this opcode requires loading the weapon model through 0247 or else the weapon might not be visible which can crash the game.

Keywords

give, assign, player, weapon

See also

  • GTA III Vice City 017A, sets the player's weapon ammo
  • GTA III Vice City San Andreas 01B2, gives the weapon to the character