Difference between revisions of "01B9"
Jump to navigation
Jump to search
(Created page with '{{OpCode | ini = 01B9=2,set_actor %1d% armed_weapon_to %2d% | description = Sets an actor's armed weapon. | p1 = Actor variable | p2 = Weapon ID numb…') |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | games = {{Icon|t}} |
− | | description = Sets | + | | command = SET_CURRENT_CHAR_WEAPON |
− | | | + | | description = Sets the current [[weapon]] of the character |
− | | | + | | syntax1 = 01B9: set_actor [''char handle''] armed_weapon_to [''int''] |
− | | | + | | p1t = [''char handle''] |
+ | | p1d = The handle of the character | ||
+ | | p2t = [''int''] | ||
+ | | p2d = [[Weapon#Lists of weapons|Weapon type]] | ||
}} | }} | ||
− | This opcode sets the weapon | + | 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 | |
− | |||
− | |||
− | ==Keywords== | ||
− |
Latest revision as of 19:32, 7 July 2017
- 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