Script v1.4.4.0
- Handtools
- Events
- Objects
- Placeables
- Triggers
- Utils
- BaleUtil
- ConfigurationUtil
- DebugUtil
- FillUtil
- FruitUtil
- FSUtils
- GameSettings
- MaterialUtil
- ObjectChangeUtil
- ParticleUtil
- SplitUtil
- TipUtil
- TreePlantUtil
- Utils
- Vehicles
- Specializations
Engine v7.0.0.2
- General
- Entity
- Node
- Scenegraph
- Lighting
- Camera
- Shape
- Particle System
- Physics
- Spline
- Animation
- Overlays
- Sound
- Input
- XML
- Network
- Callbacks
- Text Rendering
- Terrain Detail
- Tire Track
- Editor
- Rendering
- String
- Math
- I3D
- Fillplanes
Foundation Reference
FSUtils
Functions- Utils.cutFruitArea
- Utils.switchFruitTypeArea
- Utils.destroyOtherFruit
- Utils.getFruitArea
- Utils.updateRollerArea
- Utils.updateCultivatorArea
- Utils.updatePloughArea
- Utils.updateDestroyCommonArea
- Utils.updateSprayArea
- Utils.updateWeederArea
- Utils.resetSprayArea
- Utils.updateSowingArea
- Utils.updateDirectSowingArea
- Utils.updateFruitPreparerArea
- Utils.removeGroundValueArea
- Utils.addGroundValueArea
- Utils.addGroundValueAreaPerPixel
- Utils.getTireTrackColorFromDensityBits
- Utils.eraseTireTrack
Utils.cutFruitArea
DescriptionCut fruit areaDefinition
Utils.cutFruitArea(integer fruitId, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, boolean destroySpray, boolean destroySeedingWidth, boolean useMinForageState)Arguments
integer | fruitId | fruit id |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
boolean | destroySpray | destroy spray |
boolean | destroySeedingWidth | destroy seeding width |
boolean | useMinForageState | use min forange state |
integer | harvestPixelsSum | harvest of pixels sum |
integer | harvestNumPixels | harvest number of pixels |
float | sprayFactor | spray factor |
float | ploughFactor | plough factor |
integer | growthState | growth state |
float | maxArea | max area |
Utils.switchFruitTypeArea
DescriptionSwitch fruit type areaDefinition
Utils.switchFruitTypeArea(integer newFruitId, integer maskFruitId, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, integer newValue)Arguments
integer | newFruitId | new fruit id |
integer | maskFruitId | mask fruit id |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
integer | newValue | new value |
Utils.destroyOtherFruit
DescriptionDestroy other fruitDefinition
Utils.destroyOtherFruit(integer fruitId, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ)Arguments
integer | fruitId | fruit id |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
Utils.getFruitArea
DescriptionGet fruit areaDefinition
Utils.getFruitArea(integer fruitId, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, boolean allowPreparing, boolean useMinForageState)Arguments
integer | fruitId | fruit id |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
boolean | allowPreparing | allow preparing |
boolean | useMinForageState | use min forage state |
integer | ret | ret |
integer | total | total |
Utils.updateRollerArea
DescriptionUpdate roller areaDefinition
Utils.updateRollerArea(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
integer | changedValue | changed value |
Utils.updateCultivatorArea
DescriptionUpdate cultivator areaDefinition
Utils.updateCultivatorArea(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, boolean forced, boolean commonForced, float angle)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
boolean | forced | forced |
boolean | commonForced | common forced |
float | angle | angle |
integer | realArea | real area changed |
integer | area | area changed |
Utils.updatePloughArea
DescriptionUpdate plough areaDefinition
Utils.updatePloughArea(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, boolean forced, boolean commonForced, float angle)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
boolean | forced | forced |
boolean | commonForced | common forced |
float | angle | angle |
integer | realArea | real area changed |
integer | area | area changed |
Utils.updateDestroyCommonArea
DescriptionUpdate destroy common areaDefinition
Utils.updateDestroyCommonArea(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, boolean limitToField)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
boolean | limitToField | limit to field |
Utils.updateSprayArea
DescriptionUpdate spray areaDefinition
Utils.updateSprayArea(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
integer | numPixels | number of pixels |
integer | totalNumPixels | total number of pixels |
Utils.updateWeederArea
DescriptionUpdate weeder areaDefinition
Utils.updateWeederArea(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
integer | numPixels | number of pixels |
Utils.resetSprayArea
DescriptionReset spray areaDefinition
Utils.resetSprayArea(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, boolean force)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
boolean | force | force |
Utils.updateSowingArea
DescriptionUpdate sowing areaDefinition
Utils.updateSowingArea(integer fruitId, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, float angle, boolean useDirectPlanting, integer plantValue)Arguments
integer | fruitId | fruit id |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
float | angle | angle |
boolean | useDirectPlanting | use direct planting |
integer | plantValue | plant value |
integer | numPixels | number of pixels |
integer | numDetailPixels | number of detail pixels |
Utils.updateDirectSowingArea
DescriptionUpdate direct sowing areaDefinition
Utils.updateDirectSowingArea(integer fruitId, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, float angle, integer plantValue)Arguments
integer | fruitId | fruit id |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
float | angle | angle |
integer | plantValue | plant value |
integer | realArea | number of pixels real changed |
integer | area | number of total pixels |
Utils.updateFruitPreparerArea
DescriptionUpdate fruit preparer areaDefinition
Utils.updateFruitPreparerArea(integer fruitId, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, float startDropWorldX, float startDropWorldZ, float widthDropWorldX, float widthDropWorldZ, float heightDropWorldX, float heightDropWorldZ)Arguments
integer | fruitId | fruit id |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
float | startDropWorldX | start drop world X |
float | startDropWorldZ | start drop world Z |
float | widthDropWorldX | width drop world X |
float | widthDropWorldZ | width drop world Z |
float | heightDropWorldX | height drop world X |
float | heightDropWorldZ | height drop world Z |
integer | numChangedPixels | number of changed pixels |
Utils.removeGroundValueArea
DescriptionRemove ground value areaDefinition
Utils.removeGroundValueArea(integer id, integer firstChannel, integer numChannels, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, float valueToLeave)Arguments
integer | id | id |
integer | firstChannel | first channel |
integer | numChannels | number of channels |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
float | valueToLeave | value to leave |
integer | valueRemoved | value removed |
integer | numPixels | number of pixels |
Utils.addGroundValueArea
DescriptionAdd ground value areaDefinition
Utils.addGroundValueArea(integer id, integer firstChannel, integer numChannels, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, float totalAmount)Arguments
integer | id | id |
integer | firstChannel | first channel |
integer | numChannels | number of channels |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
float | totalAmount | total amount |
integer | numAdded | number of added |
integer | numPixels | number of pixels |
float | amountPerPixel | amount per pixel |
float | roundingError | rounding error |
Utils.addGroundValueAreaPerPixel
DescriptionAdd ground value areaDefinition
Utils.addGroundValueAreaPerPixel(integer id, integer firstChannel, integer numChannels, float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ, float amountPerPixel)Arguments
integer | id | id |
integer | firstChannel | first channel |
integer | numChannels | number of channels |
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |
float | amountPerPixel | amount per pixel |
integer | numAdded | number of added |
Utils.getTireTrackColorFromDensityBits
DescriptionReturns tire track color from given density bitsDefinition
Utils.getTireTrackColorFromDensityBits(integer densityBits)Arguments
integer | densityBits | density bits |
table | color | tire track color |
Utils.eraseTireTrack
DescriptionErase tire track on given parallelogramDefinition
Utils.eraseTireTrack(float startWorldX, float startWorldZ, float widthWorldX, float widthWorldZ, float heightWorldX, float heightWorldZ)Arguments
float | startWorldX | start world X |
float | startWorldZ | start world Z |
float | widthWorldX | width world X |
float | widthWorldZ | width world Z |
float | heightWorldX | height world X |
float | heightWorldZ | height world Z |