Kross
Active member
- Joined
- Dec 15, 2021
- Messages
- 149
- Reaction score
- 42
Hello ugbase family,I am having problems with a certain opcode that says about the current weapon. However in my problem,I can't get it to specify only for 1 weapon(still plays the effect for all,even though I want it on only 1 weapon). If someone can tell me what I do,I will leave the code part in the topic.
edit: This 9@ of the Opcode is what I tried to do, but it doesn't have the effect of specifying for 1 weapon.
PHP:
:Noname_2
0001: wait 0 ms
00D6: if and
80DF: not actor $PLAYER_ACTOR driving
0AB1: not @isChatOpen 0
0AB1: not @isDialogOpen 0 ret dType 0@ dId 1@
0470: 9@ = actor $PLAYER_ACTOR current_weapon
if 9@ = 34
0AB0: key_pressed 2
004D: jump_if_false @Noname_2