Jump to content

setVehicleHandling


PaiN^

Recommended Posts

Posted

Hi,

How can i use that function with the centerMass property ?

I need an example !

And Thanx ..

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
what do you mean by how to use it !

The syntax is:

bool setVehicleHandling ( element theVehicle, string property, var value ) 

It says in the wiki that the value of the centerMass property is a table .

I want an example of how to do that !, I tried this but it didn't work :

local Table = { 
        [0.1] = posX, [0.3] = posZ, [-0.15] = posY 
    } 
  
setVehicleHandling ( theVehicle, 'centerMass', Table ) 

No errors in debug !

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
local Table = {0.1, 0.3, -0.15} 

Working, Thank you !

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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