CLEO Help I need some help in CLEO!

CLEO related
Status
Not open for further replies.

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

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
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO}

thread 'SHOTGUN'

:SHOTGUN
wait 0
if and
Player.Defined($PLAYER_CHAR)
0AB0:   key_pressed 35 
else_jump @SHOTGUN
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 25
wait 500
jump @SHOTGUN
 
Status
Not open for further replies.
Top