Jump to content

Collisions with vehicles in Race gamemode


MilesFox92

Recommended Posts

Is there any way to enable collisions with cars (That were created with Map Editor and are part of the map) in the race gamemode? I mean, the ordinary collisions like in other gamemodes, and not just some kind of tank mode for those cars.

P.S. I know almost nothing about Lua scripting.

Link to comment
  • 2 years later...

get the vehicles then set the data in your script  the the code down is client side , I did not try server side it has different values for third argment . 

https://wiki.multitheftauto.com/wiki/SetElementData

--client side
--to enable 
setElementData (vehicle, 'race.collideothers', 1 ,true)
--to disabled
-- setElementData (vehicle, 'race.collideothers', 0 ,true)

 

Edited by Prox69
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...