Jump to content

Create effect teargas


favarotop

Recommended Posts

Posted

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

 

 

Posted
Hello, yes friend I used this one, but this function serves to create a weapon that supposedly shoots another projectile, it's not my case. I need that after a command the tear gas is created in front.
Posted
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

  • Moderators
Posted
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.

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...