CLEO Help Failed conditions

CLEO related
Status
Not open for further replies.

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
How come it still says "/lock" when I enter the car as passenger too?:

Code:
// This file was decompiled using SASCM.INI published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013

{$VERSION 3.1.0000}
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

:Noname_2
wait 0 
if 
09DE:   actor $PLAYER_ACTOR entering_car 
jf @Noname_2 
wait 4000
if
actor.Driving($PLAYER_ACTOR)
jf @Noname_2 
0AF9: "/lock"
goto @Noname_2
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
Mr.Ze link said:
Actor.Driving checks if the actor is in a car, doesn't matter passenger seat or driver seat.

Well that's some misleading shit of a keyword. Can you make it so it says "/lock" only when I enter as the driver?
 

ThermaL

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

0000: NOP 

:Noname_2
wait 0 
if 
09DE:   actor $PLAYER_ACTOR entering_car 
jf @Noname_2
if
Actor.Driving($PLAYER_ACTOR)
jf @Noname_2 
if or
0611:   actor $PLAYER_ACTOR performing_animation "Drive_R"
0611:   actor $PLAYER_ACTOR performing_animation "Drive_L"
jf @Noname_2

:Lock
wait 0
0AF9: "/lock"

:Noname_69
wait 0
if
not Actor.Driving($PLAYER_ACTOR)
jf @Noname_69
goto @Noname_2
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
Mr.Ze link said:
Code:
{$CLEO .cs}

0000: NOP 

:Noname_2
wait 0 
if 
09DE:   actor $PLAYER_ACTOR entering_car 
jf @Noname_2
if
Actor.Driving($PLAYER_ACTOR)
jf @Noname_2 
if or
0611:   actor $PLAYER_ACTOR performing_animation "Drive_R"
0611:   actor $PLAYER_ACTOR performing_animation "Drive_L"
jf @Noname_2

:Lock
wait 0
0AF9: "/lock"

:Noname_69
wait 0
if
not Actor.Driving($PLAYER_ACTOR)
jf @Noname_69
goto @Noname_2

Thanks but not working mate. No command sent when I enter the car as driver. BTW congratz for mod!  :urtheman:
 

ThermaL

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

0000: NOP 

:Noname_2
wait 0
if
Actor.Driving($PLAYER_ACTOR)
jf @Noname_2 
if or
0611:   actor $PLAYER_ACTOR performing_animation "Drive_R"
0611:   actor $PLAYER_ACTOR performing_animation "Drive_L"
jf @Noname_2

:Lock
wait 0
0AF9: "/lock"

:Noname_69
wait 0
if
not Actor.Driving($PLAYER_ACTOR)
jf @Noname_69
goto @Noname_2
Try this
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
TH3RM4L link said:
Code:
{$CLEO .cs}

0000: NOP 

:Noname_2
wait 0
if
Actor.Driving($PLAYER_ACTOR)
jf @Noname_2 
if or
0611:   actor $PLAYER_ACTOR performing_animation "Drive_R"
0611:   actor $PLAYER_ACTOR performing_animation "Drive_L"
jf @Noname_2

:Lock
wait 0
0AF9: "/lock"

:Noname_69
wait 0
if
not Actor.Driving($PLAYER_ACTOR)
jf @Noname_69
goto @Noname_2
Try this

Still the same result. Btw wtf? I swore the guy I saw replying to me before is Mr.Ze...  :looky: :looky: :looky:
 

ThermaL

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

0000: NOP 

:Noname_2
wait 0
if
Actor.Driving($PLAYER_ACTOR)
jf @Noname_2 
if
0611:   actor $PLAYER_ACTOR performing_animation "CAR_Lsit"
jf @Noname_2

:Lock
wait 0
0AF9: "/lock"

:Noname_69
wait 0
if
not Actor.Driving($PLAYER_ACTOR)
jf @Noname_69
goto @Noname_2
THIS WILL WORK!
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
TH3RM4L link said:
Code:
{$CLEO .cs}

0000: NOP 

:Noname_2
wait 0
if
Actor.Driving($PLAYER_ACTOR)
jf @Noname_2 
if
0611:   actor $PLAYER_ACTOR performing_animation "CAR_Lsit"
jf @Noname_2

:Lock
wait 0
0AF9: "/lock"

:Noname_69
wait 0
if
not Actor.Driving($PLAYER_ACTOR)
jf @Noname_69
goto @Noname_2
THIS WILL WORK!

OK it does, but I also need it when riding bike as driver. Please tell me what animation is that?
 
Status
Not open for further replies.
Top