CLEO Help register a whole line as variable?

CLEO related
Status
Not open for further replies.

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
hello i was wondering how to register a whole line as variable like this:


04D3: get_nearest_car_path_coords_from $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD type 2 store_to 1@ 2@ 3@

should be:
04D3: get_nearest_car_path_coords_from $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD type 2 store_to 1@ 2@ 3@ = $car

or should be:
$car = 04D3: get_nearest_car_path_coords_from $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD type 2 store_to 1@ 2@ 3@


and should i use $car or car@?
 

m1zg4rd_PL

Well-known member
Joined
Jul 19, 2013
Messages
222
Reaction score
3
Use this to get current player car to variable:

Code:
03C0: 69@ = actor $PLAYER_ACTOR car

But at first check if player is driving:

Code:
if
  Actor.Driving($PLAYER_ACTOR)
else_jump @IF_NOT_DRIVING
jump @IF_DRIVING

Or if you want to get nearest car at 1@ 2@ 3@ then use this:

Code:
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 69@ closest_ped_to $PED
 
Status
Not open for further replies.
Top