Jump to content

Create effect teargas


favarotop

Recommended Posts

Hello I'm making a server, and I need some help with creating a "Teargas" effect, I would like when typing a command the player would create a gas grenade in front of him, but without a function to take the grenade in his hand and throw it there, only if it appears activated in front of you. I tried using an idea similar to "createexplosion" but it didn't work. Can someone help me? because I need the smoke created to be amplified

 

 

Link to comment
  • Moderators
On 16/08/2021 at 02:34, favarotop said:

I need the smoke created to be amplified

You can create the teargas effect with the createEffect function.

https://wiki.multitheftauto.com/wiki/CreateEffect

All:

https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#Effects_functions

 

It is only the visualisation of the effect. And sound can be enabled/disabled.

Enjoy.

 

Link to comment
8 minutes ago, IIYAMA said:

Você pode criar o efeito de gás lacrimogêneo com a função createEffect.

https://wiki.multitheftauto.com/wiki/CreateEffect

Tudo:

https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#Effects_functions

 

É apenas a visualização do efeito. E o som pode ser ativado / desativado.

Aproveitar.

 

 

Yes, buddy I know, but this effect doesn't actually activate the gas... it's only visible, but it doesn't asphyxia

Link to comment
  • Moderators
7 hours ago, favarotop said:

Yes, buddy I know, but this effect doesn't actually activate the gas... it's only visible, but it doesn't asphyxia

In that case you still have to use createProjectile. If you check all parameters and put velocity and force to 0. Set the creation position. The teargas shouldn't fly away when you create it.

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...