Script v1.4.4.0
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
FillUtil
DescriptionFillUtilFunctions
- registerFillTypeCategory
- addFillTypeToCategory
- registerFillType
- registerFoodGroup
- registerFillTypeInFoodGroup
- registerFillTypeAsFoodMixture
- getFillTypesByNames
- getFillTypeByCategoryName
- getFillTypesByFruitTypeNames
- getFillTypesByFruitTypeCategoryName
registerFillTypeCategory
DescriptionRegister fill type categoryDefinition
registerFillTypeCategory(string name)Arguments
string | name | name of fill type category |
integer | id | id of new category |
addFillTypeToCategory
DescriptionAdds fill type to categoryDefinition
addFillTypeToCategory(integer category, integer fillType)Arguments
integer | category | category |
integer | fillType | fill type |
registerFillType
DescriptionRegister new fill typeDefinition
registerFillType(string name, string nameI18N, integer category, float pricePerLiter, boolean showOnPriceTable, string hudOverlayFilename, string hudOverlayFilenameSmall, float massPerLiter, float maxPhysicalSurfaceAngle)Arguments
string | name | name of fill type |
string | nameI18N | I18N text of fill type |
integer | category | category to add fill type (optional) |
float | pricePerLiter | price per liter |
boolean | showOnPriceTable | show fill type on price table |
string | hudOverlayFilename | filename of hud overlay |
string | hudOverlayFilenameSmall | filename if small hud overlay |
float | massPerLiter | mass per liter in t |
float | maxPhysicalSurfaceAngle | max physical surface angle |
integer | id | id of new fill type |
registerFoodGroup
DescriptionRegister new food groupDefinition
registerFoodGroup(integer animalIndex, string groupName, string nameI18N, float weight)Arguments
integer | animalIndex | index of animal |
string | groupName | name of group |
string | nameI18N | I18N name if group |
float | weight | weight |
integer | id | id of new food group |
registerFillTypeInFoodGroup
DescriptionRegister fill type in food groupDefinition
registerFillTypeInFoodGroup(integer animalIndex, integer foodGroupIndex, integer fillType)Arguments
integer | animalIndex | index if animal |
integer | foodGroupIndex | index of food group |
integer | fillType | fill type to add |
registerFillTypeAsFoodMixture
DescriptionRegister fill type as food mixtureDefinition
registerFillTypeAsFoodMixture(integer animalIndex, integer fillType, table weights)Arguments
integer | animalIndex | index of animal |
integer | fillType | fill type |
table | weights | weights |
getFillTypesByNames
DescriptionReturns fill type ids from string with fill type namesDefinition
getFillTypesByNames(string fillTypes, string warning)Arguments
string | fillTypes | fill types |
string | warning | warning if fill type not found |
table | fillTypes | fill types |
getFillTypeByCategoryName
DescriptionReturns fill type ids from string with category namesDefinition
getFillTypeByCategoryName(string fillTypeCategories, string warning)Arguments
string | fillTypeCategories | fill type categories |
string | warning | warning if category not found |
table | fillTypes | fill types |
getFillTypesByFruitTypeNames
DescriptionReturns fill type ids from string with fruit type namesDefinition
getFillTypesByFruitTypeNames(string fruitTypes, string warning)Arguments
string | fruitTypes | fruit types |
string | warning | warning if fill type not found |
table | fillTypes | fill types |
getFillTypesByFruitTypeCategoryName
DescriptionReturns fill type ids from string with fruit type category namesDefinition
getFillTypesByFruitTypeCategoryName(string fruitTypeCategories, string warning)Arguments
string | fruitTypeCategories | fruit type categories |
string | warning | warning if category not found |
table | fillTypes | fill types |