damm_hacker
Member
- Joined
- Feb 26, 2014
- Messages
- 5
- Reaction score
- 0
Hello UGbase!
I am new to cleo thingy so i need some help
Well i want to write a script that will automatically switch to Shotgun when a key is pressed,
i wrote following code but this does not help me
Well what i want to do is that i dont have to scroll through all weapons to get Shotgun , i just hit End key and i get armed with shotgun.
Regards
Damn_Hacker
I am new to cleo thingy so i need some help
Well i want to write a script that will automatically switch to Shotgun when a key is pressed,
i wrote following code but this does not help me
Code:
if and
Actor.HasWeapon($PLAYER_ACTOR, 25)
Player.Defined($PLAYER_CHAR)
0AB0: key_pressed 35 //----End Key
else_jump @somewhere_else
wait 20
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 25
jump @somewhere_else
Well what i want to do is that i dont have to scroll through all weapons to get Shotgun , i just hit End key and i get armed with shotgun.
Regards
Damn_Hacker