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
MaterialUtil
DescriptionMaterialUtilFunctions
- registerMaterialType
- registerParticleType
- onCreateMaterial
- getMaterial
- getMaterialType
- onCreateParticleSystem
- getParticleSystemType
- getParticleSystem
- onCreateCutterEffect
- getCutterEffectType
- getCutterEffects
registerMaterialType
DescriptionRegister material typeDefinition
registerMaterialType(string name)Arguments
string | name | name of material type |
integer | id | of material type |
registerParticleType
DescriptionRegister particle typeDefinition
registerParticleType(string name)Arguments
string | name | name of particle type |
integer | id | of particle type |
onCreateMaterial
DescriptionCalled by material holder to create materialDefinition
onCreateMaterial(any_type unused, integer id)Arguments
any_type | unused | unused |
integer | id | id |
getMaterial
DescriptionReturns material for given propertiesDefinition
getMaterial(integer fillType, string materialTypeName, integer materialId)Arguments
integer | fillType | fill type |
string | materialTypeName | name of material type |
integer | materialId | id of material |
integer | materialId | id of material |
getMaterialType
DescriptionReturns id of material typeDefinition
getMaterialType(string materialTypeName)Arguments
string | materialTypeName | material type name |
integer | id | id of material type |
onCreateParticleSystem
DescriptionCalled by particle holder to create particle systemDefinition
onCreateParticleSystem(any_type unused, integer id)Arguments
any_type | unused | unused |
integer | id | id |
getParticleSystemType
DescriptionReturns id of particle system typeDefinition
getParticleSystemType(string particleTypeName)Arguments
string | particleTypeName | particle system type name |
integer | id | id of particle system type |
getParticleSystem
DescriptionReturns particle system for given propertiesDefinition
getParticleSystem(integer fillType, string particleTypeName)Arguments
integer | fillType | fill type |
string | particleTypeName | name of particle system type |
table | particleSystem | particle system |
onCreateCutterEffect
DescriptionCalled by cutter effect holder to create cutter effectDefinition
onCreateCutterEffect(any_type unused, integer id)Arguments
any_type | unused | unused |
integer | id | id |
getCutterEffectType
DescriptionReturns id of cutter effect typeDefinition
getCutterEffectType(string cutterEffectTypeName)Arguments
string | cutterEffectTypeName | cutter effect type name |
integer | id | id of cutter effect type |
getCutterEffects
DescriptionReturns cutter effects for given propertiesDefinition
getCutterEffects(integer fillType, integer effectType, boolean isThreshing)Arguments
integer | fillType | fill type |
integer | effectType | effect type |
boolean | isThreshing | is threshing |
table | cutterEffects | cutter effects |