Jump to content

locate specific object and mark using a checkpoint


Recommended Posts

it is giving errors when copying

 

{$CLEO.csi}

tópico 'MarcarObjeto'

:MarcarObjeto
wait 0
0470: objeto_id = 3904 // Defina o ID do objeto como 3904 (você pode alterar conforme necessário)
if
  0248: objeto_id >= 0 // Verifique se o ID do objeto é válido
then
  0472: objeto_x = objeto objeto_id coordenada X
  0473 : objeto_y = objeto objeto_id coordenada Y
  0474: objeto_z = objeto objeto_id coordenada Z
  0173: set_checkpoint $CHECKPOINT_TYPE_TO_NEXT_TO_SAVE_HOUSE at objeto_x objeto_y objeto_z // Cria um checkpoint nas coordenadas do objeto
end

pule @MarcarObjeto

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.