| Category | Farming Simulator 2011 |
| Created | 04.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.