Jump to content

explosions


IIYAMA

Recommended Posts

  • Moderators

How can I stop explosion at server side?

https://wiki.multitheftauto.com/wiki/OnClientExplosion

If the event onClientExplosion get triggered, I am able to cancel it. (cancelEvent())

But I am not able to block the signal from sending to all players.

The only things that can stop this from happening:

- destroyElement() (destroy the element bevore it triggers)

- SetProjectileCounter (reset the explosion counter)

Note: only the creator can stop it from sending

Are there server-side functions to stop this?

Link to comment

in server side you can't make it

but here un example in Client side:

function removeDamageOnExplotion(_, _, _, theType) 
  if getElementType(source) == "object" then 
    cancelEvent() 
  end 
end 
addEventHandler("onClientExplosion", root, removeDamageOnExplotion) 

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