Difference between revisions of "01B1"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|3}} {{Icon|VC}} '''GIVE_WEAPON_TO_PLAYER''' <hr /> '''Description''' : Gives a weapon to the player '''Syntax''' : 01B1: give_player [''player handle''] weapon [''int1'...")
 
m
Line 1: Line 1:
{{Icon|3}} {{Icon|VC}} '''GIVE_WEAPON_TO_PLAYER'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}} {{Icon|VC}}
'''Description'''
+
| command    = GIVE_WEAPON_TO_PLAYER
: Gives a weapon to the player
+
| description = Gives a weapon to the player
'''Syntax'''
+
| syntax1    = 01B1: give_player [''player handle''] weapon [''int1''] ammo [''int2'']
: 01B1: give_player [''player handle''] weapon [''int1''] ammo [''int2'']
+
| p1t        = [''player handle'']
'''Parameter'''
+
| p1d        = The [[0053|handle of the player]]
: [''player handle'']
+
| p2t        = [''int1'']
:: The [[0053|handle of the player]]
+
| p2d        = [[Weapon#Lists of Weapons|Weapon number]]
: [''int1'']
+
| p3t        = [''int2'']
:: [[Weapon#Lists of Weapons|Weapon number]]
+
| p3d        = Ammo
: [''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 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 group. Using this opcode requires loading the weapon model through [[0247]] or else the weapon might not be visible which can crash the game.
Line 19: Line 18:
  
 
== See also ==
 
== See also ==
* [[017A]], sets the player's weapon ammo
+
* {{Icon|3}} {{Icon|VC}} [[017A]], sets the player's weapon ammo
* [[01B2]], gives a weapon to a character
+
* {{Icon|t}} [[01B2]], gives a weapon to a character
 
 
[[Category:OpCodes]]
 

Revision as of 05:00, 7 December 2016

GTA III Vice City GIVE_WEAPON_TO_PLAYER


Description
Gives a weapon to the player
Syntax
01B1: give_player [player handle] weapon [int1] ammo [int2]
Parameter
[player handle]
The handle of the player
[int1]
Weapon number
[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 group. 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 a weapon to a character