Category | Farming Simulator 2009 |
Created | 06.01.2010 15:33 |
Christian S (Unknown) | 06.01.2010 15:34 |
---|---|
Hi, I'll need the parameters and return values of the setDensityParallelogram function. A little description (if neccasary) of them would be nice. Thanks Christian |
Stefan Geiger - GIANTS Software | 01.02.2010 12:19 |
---|---|
The function takes the following parameters; setDensityParallelogram(terrainDetailId, x, z, widthX, widthZ, heightX, heightZ, firstChannel, numChannels, value); There is a good description on ls-mods.de describing the basics of the parallelogram parameters (x,z, widhtX, widhtZ, heightX, heightZ). http://ls-mods.de/scriptDocumentation.php?class=utils#parallelogram_info The channels from firstChannel to firstChannel+numChannels are modified according to the bist of value. The first bit of value is assigned to firstChannel, the second to firstChannel+1 etc. The return value is the sum of the values in the given parallelogram that was there. E.g. if you want to implement a cutter, you can use to the return value, to determine how much grain you have cut. There are several other function that change the behavior setDensityParallelogram, such as shifting the return value or the behavior if the fruit type indices do not match. |
Note: Log in to post. Create a new account here.