Community Forum

Motor method names

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created12.01.2010 18:40


Martin Schmidt (unknown) 12.01.2010 18:41
Hello

I would like to know what functions i can call on the motor object in a lau script.

like i know i can call: self.motor:getMaxRpm()
but what else can i call??

Tobias F. (unknown) 13.01.2010 16:18
You can look at the VehicleMotor.lua Script in the SDK ;)

self:getTorque() returns the Motor Torque

self:getGearRatio(acceleration) returns the gearRatio

and you can set the speed level with:

self:setSpeedLevel(level, force)


Note: Log in to post. Create a new account here.