Difference between revisions of "081A"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
<code>081A=2,%1d% %2d%</code><br>
+
{{OpCode
'''Description''': Sets the actor's weapon skill<br>
+
| games      = {{Icon|SA}}
'''Parameter 1''': Actor handle<br>
+
| command    = SET_CHAR_WEAPON_SKILL
'''Parameter 2''': Flag<br>
+
| description = Sets the weapon skill of the character
'''Supports''': San Andreas<br>
+
| syntax1    = 081A: set_actor [''char handle''] weapon_skill_to [''int'']
 +
| p1t        = [''char handle'']
 +
| p1d        = The handle of the character
 +
| p2t        = [''int'']
 +
| p2d        = Weapon skill (0 = poor, 1 = gangster, 2 = hitman)
 +
}}
  
This opcode can set an actor's weapon skill. This does not work on CJ.
+
This opcode sets the weapon skill of the character. This does not work on CJ.
  
==Flags==
+
== Keywords ==
'''Flag 0''': Poor<br>
+
set, actor, character, weapon, skill
'''Flag 1''': Gangster<br>
 
'''Flag 2''': Hitman
 
 
 
==Keywords==
 
set, actor, weapon, skill
 
 
 
[[Category:OpCodes]]
 

Latest revision as of 07:56, 16 June 2016

San Andreas SET_CHAR_WEAPON_SKILL


Description
Sets the weapon skill of the character
Syntax
081A: set_actor [char handle] weapon_skill_to [int]
Parameter
[char handle]
The handle of the character
[int]
Weapon skill (0 = poor, 1 = gangster, 2 = hitman)

This opcode sets the weapon skill of the character. This does not work on CJ.

Keywords

set, actor, character, weapon, skill