Difference between revisions of "01B9"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
m
 
Line 1: Line 1:
{{Icon|t}} '''SET_CURRENT_CHAR_WEAPON'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = SET_CURRENT_CHAR_WEAPON
: Sets the current weapon of the character
+
| description = Sets the current [[weapon]] of the character
'''Syntax'''
+
| syntax1    = 01B9: set_actor [''char handle''] armed_weapon_to [''int'']
: 01B9: set_actor [''char handle''] armed_weapon_to [''int'']
+
| p1t        = [''char handle'']
'''Parameter'''
+
| p1d        = The handle of the character
: [''char handle'']
+
| p2t        = [''int'']
:: The handle of the character
+
| p2d        = [[Weapon#Lists of weapons|Weapon type]]
: [''int'']
+
}}
:: [[Weapon#Lists of Weapons|Weapon number]]
 
  
 
This opcode sets the current weapon of the character. It has no effect if the character does not have the weapon.
 
This opcode sets the current weapon of the character. It has no effect if the character does not have the weapon.
Line 15: Line 14:
 
== Keywords ==
 
== Keywords ==
 
set, current, character, actor, weapon, arm, armed
 
set, current, character, actor, weapon, arm, armed
 
[[Category:OpCodes]]
 

Latest revision as of 19:32, 7 July 2017

GTA III Vice City San Andreas SET_CURRENT_CHAR_WEAPON


Description
Sets the current weapon of the character
Syntax
01B9: set_actor [char handle] armed_weapon_to [int]
Parameter
[char handle]
The handle of the character
[int]
Weapon type

This opcode sets the current weapon of the character. It has no effect if the character does not have the weapon.

Keywords

set, current, character, actor, weapon, arm, armed