CLEO Help Help with a very simple cleo

CLEO related
Status
Not open for further replies.

ighidouch

Active member
Joined
Dec 10, 2013
Messages
30
Reaction score
0
Hello guys,
I just wanna make a simple cleo, because i just started learning, but i was wondering if there is a list of $player_actor animations.
Well, i just wanna make a cleo that jumps every 3 secs.

Code:
{$VERSION 3.1.0027}
{$CLEO .cs}

thread 'TESTCLEO'

:TESTCLEO_01
wait 0
if
0AB0:   key_pressed 123
else_jump @TESTCLEO_02
0332: set_actor $PLAYER_ACTOR [color=red](i dont know what to put here)[/color] 1

Thank you for your help  :urtheman:
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Anim list here: http://gtag.gtagaming.com/forums/index.php?showtopic=35 (check it first)

{$CLEO .cs}

0000:

:ANIM
wait 0
if
key_down 123
jf @ANIM
0605: actor $PLAYER_ACTOR perform_animation "BOM_Plant" IFP "BOMBER" framedelta 4.0 loop 0 lockX 0 lockY 0 lockF 0 time -1
wait 500
goto @ANIM

"BOMBER" - 6 animations
BOM_Plant
BOM_Plant_2Idle
BOM_Plant_Crouch_In
BOM_Plant_Crouch_Out
BOM_Plant_In
BOM_Plant_Loop

I hope you got it
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
ighidouch link said:
Okey, thank you for the list, then Bomber is the jump animation ?
Code:
goto @ANIM
Is the loop ?
:watchout:
If you don't put goto, the cleo will work only 1 time.
 

ighidouch

Active member
Joined
Dec 10, 2013
Messages
30
Reaction score
0
I just wanna make a cleo like this one : It jumps every 3000ms and it loops
 

Attachments

  • SendKey.cs
    17.5 KB · Views: 76

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Oh, now I know what you need

Code:
{$CLEO .cs}

0000:

:ON
wait 0
if
key_down 123
jf @ON
print "ON" 1000
wait 500
goto @OFF

:MAIN
wait 0
0812: AS_actor $PLAYER_ACTOR perform_animation "JUMP_launch" IFP "PED" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1
wait 200
0812: AS_actor $PLAYER_ACTOR perform_animation "JUMP_land" IFP "PED" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1
wait 3000
goto @OFF

:OFF
wait 0
if
key_down 123
jf @MAIN
print "OFF" 1000
wait 500
jump @ON
 
Status
Not open for further replies.
Top