Jump to content

Map gravitation


rijads

Recommended Posts

I want to create a simple dd map, that has multiple gravitations, if that is possible.

I created road in a shape of cube, and put road so you can drive on each side.

SO for example when i go to edge od one surface, where i am supposed to fall in water, i actually dont fall, but it just changes gravity, and i am again like before on the road, just on other side of cube.

And only if i fall into the hole of cube, i go into water.

I saw some map that had this script that changes gravity at one place, i think it was puma something.

But i lost map and script, so is it possible to make something like that ?

here is pic:

unledta.png

If anyone knows how to, could he write here code, with random x,y,z positions, which i can then edit ?

Link to comment
You can create an area with a colshape and the event is onColShapeHit to know if the player enters the colshape :

https://wiki.multitheftauto.com/wiki/CreateColRectangle

change the vehicle gravity vector on each colshape zone :

https://wiki.multitheftauto.com/wiki/SetVehicleGravity

This will change the vehicle gravity vector, fast, in 1 move, you can change it slowly with a timer I guess.

thanks benox

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