CLEO Help [HELP] When the actor enters the car as driver/passenger

CLEO related
Status
Not open for further replies.

silentl747

Active member
Joined
Jul 7, 2014
Messages
96
Reaction score
0
Hello Ugbase,

I wanna ask the opcode of when the actor enters the car as driver and passenger will do some actions.

thanks!
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
NOPCode.exe link said:
Hello Ugbase,

I wanna ask the opcode of when the actor enters the car as driver and passenger will do some actions.

thanks!
Try this:
Code:
:MAIN
wait 0
if
0256:   player $PLAYER_ACTOR defined
jf @MAIN
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
  056D: car 0@ defined
jf @MAIN
if
05CA: AS_actor $PLAYER_ACTOR enter_car 0@ passenger_seat 0
then
...
else
goto @MAIN
end
Or just this: 09DE:  actor $PLAYER_ACTOR entering_car
 

silentl747

Active member
Joined
Jul 7, 2014
Messages
96
Reaction score
0
Pa0NeiX link said:
Try this:
Code:
:MAIN
wait 0
if
0256:   player $PLAYER_ACTOR defined
jf @MAIN
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
  056D: car 0@ defined
jf @MAIN
if
05CA: AS_actor $PLAYER_ACTOR enter_car 0@ passenger_seat 0
then
...
else
goto @MAIN
end
Or just this: 09DE:  actor $PLAYER_ACTOR entering_car

Could you please explain, i cant understand some codes
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
NOPCode.exe link said:
Could you please explain, i cant understand some codes
This is more easy
Code:
{$CLEO .cs}

0000: NOP

:MAIN
wait 0 
if
09DE:   actor $PLAYER_ACTOR entering_car //If you open car door
then
// Add your codes here
else //if not
goto @MAIN
end
goto @COOLDOWN

:COOLDOWN
wait 5000
goto @MAIN
 
Status
Not open for further replies.
Top