Página 1 de 1
[SA/Ajuda] Como colocar partícula em objeto ou textura?
Enviado: 18 Jan 2022, 20:22
por Hatiro
Eu queria saber se existe uma forma de colocar efeitos/partículas em um tipo específico de objeto e quando o jogador vir o objeto, ele terá o efeito
Não quero criar o objeto com o efeito quero adicionar que todo objeto desse tipo tenha esse efeito visual
Re: [SA/Ajuda] Como colocar partícula em objeto ou textura?
Enviado: 19 Jan 2022, 12:35
por HzanRsxa2959
It can be done by editing the DFF model:
http://gtamodding.ru/wiki/2DFX_(%D0%A1% ... %D1%8F_RW)
Another method is using
CLEO+:
Código: Selecionar tudo
{$CLEO .cs}
{$USE CLEO+}
0ED7: set_script_event_object_create true label @objectCreateEvent var_object 0@
while true
wait 0
end
:objectCreateEvent
if 09CC: object 0@ model_is 1240 //specify the object's model ID
then
066E: create_particle "COKE_TRAIL" attached_to_object 0@ with_offset 0 0 0 rotation 0 0 0 flag 1 store_to 1@ //create the particle attached to the object
0650: destroy_particle 1@ //prevent the particle from being saved in the game
end
0ED0: return_script_event
Re: [SA/Ajuda] Como colocar partícula em objeto ou textura?
Enviado: 20 Jan 2022, 11:37
por Hatiro
It's not working
Código: Selecionar tudo
{$CLEO .cs}
{$USE CLEO+}
0ED7: set_script_event_object_create true label @objectCreateEvent var_object 0@
while true
wait 0
end
:objectCreateEvent
if 09CC: object 0@ model_is 3071 //specify the object's model ID
then
066E: create_particle "COKE_TRAIL" attached_to_object 0@ with_offset 0 0 0 rotation 0 0 0 flag 1 store_to 1@ //create the particle attached to the object
0650: destroy_particle 1@ //prevent the particle from being saved in the game
end
0ED0: return_script_event
Re: [SA/Ajuda] Como colocar partícula em objeto ou textura?
Enviado: 20 Jan 2022, 12:13
por HzanRsxa2959
Hatiro escreveu: ↑20 Jan 2022, 11:37
It's not working
I think it only works for objects created by script. I will try to modify the code to work for objects spawned by all means, though it may take a while; give me some time.
Re: [SA/Ajuda] Como colocar partícula em objeto ou textura?
Enviado: 21 Jan 2022, 20:31
por Hatiro
So sorry to bother you but is there really any way? this print game mode is samp