Community Forum

Howto make Windrow without damaging Grass

Forum Overview >> Farming Simulator 2011

CategoryFarming Simulator 2011
Created04.12.2010 13:04


Christian S (unknown) 04.12.2010 13:07
Hi,

How can i create Windrow without damaging the Grass underneath it?

At the moment i do it with "Utils.updateFruitWindrowArea" but this damages the Grass

Kind regards

C.Schoch

Stefan Geiger - GIANTS Software 06.12.2010 10:54
The parameters for updaeFruitWindrowAreas are the followings:
Utils.updateFruitWindrowArea(fruitId, startWorldX, startWorldZ, widthWorldX, widthWorldZ, heightWorldX, heightWorldZ, value, force, deleteFruit)

To keep the grass, you should provide false for the deleteFruit parameter.

Torsten Pfau (unknown) 07.12.2010 03:46
How it have to look with a number example?


Stefan Geiger - GIANTS Software 07.12.2010 13:26
For the other parameters you might want to look at the source code of the windrows specialization of the game here, starting at line 151:
http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/specializations/Windrower

The values x,z,x1,z1,x2,z2 are the startWorld.. values.
The call to the updateFruitWindrowArea function happens then in the windrower event:
http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/specializations/WindrowAreaEvent


The information about the parallelogram information probably is useful as well:
http://ls-mods.de/scriptDocumentation.php?class=utils#parallelogram_info

Torsten Pfau (unknown) 07.12.2010 15:53
Ok, thanxs for answer.


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