Jump to content

Water detection


GiMax

Recommended Posts

Posted

Hi, is it possible to detect water?

For example when car jumps from ground into the water.

I need a simple event like ON_ELEMENT_HIT_WATER.

Posted

Right now there's no "out of the box" event for that, but I requested it a while ago, a patch was just submitted the other day.

In the meantime, you'll need to use https://wiki.multitheftauto.com/wiki/Tes ... ainstWater for detection.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

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