Community Forum

Problem with baller

Forum Overview >> Farming Simulator 2011

CategoryFarming Simulator 2011
Created28.01.2011 23:01


Lukas Tichy (Unknown) 28.01.2011 23:06
I have a problem with my baller function. The baller create bale but are not save this bale.
i usualy script from LS 09. in this function here:

local deltaRealTime = (self.time - self.baleMoveLastTime)/1000;
local lx, ly, lz = bale.lastX, bale.lastY, bale.lastZ;
local x,y,z = getWorldTranslation(bale.id);
local rx,ry,rz = getWorldRotation(bale.id);
link(getRootNode(), bale.id);
g_currentMission:addItemToSave(bale.filename, bale.id, 0);
setTranslation(bale.id, x, y, z);
setRotation(bale.id, rx, ry, rz);
setRigidBodyType(bale.id, "Dynamic");
setLinearVelocity(bale.id, (x-lx)/deltaRealTime, (y-ly)/deltaRealTime, (z-lz)/deltaRealTime);

table.remove(self.bales, i);


What i have change so the baller correct save a bale :)

Www.ls-mods.pl ;] (Unknown) 29.01.2011 12:03
277 line in this document: http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/specializations/Baler


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