LUADOC - Farming Simulator 17

Printable Version

BaleUtil

Description
BaleUtil
Functions

registerBaleType

Description
Register bale type
Definition
registerBaleType(string filename, string fillTypeName, float width, float height, float length, float diameter, boolean isRoundbale)
Arguments
stringfilenamefile name
stringfillTypeNamefill type name
floatwidthbale width
floatheightbale height
floatlengthbale length
floatdiameterbale diameter
booleanisRoundbaleis roundbale
Return Values
integerbaleIndexindex of bale

getBale

Description
Get bale
Definition
getBale(integer fillType, float width, float height, float length, float diameter, boolean isRoundbale)
Arguments
integerfillTypefill type
floatwidthbale width
floatheightbale height
floatlengthbale length
floatdiameterbale diameter
booleanisRoundbaleis roundbale
Return Values
tablebalebale

getBaleKey

Description
Get bale key
Definition
getBaleKey(string fillTypeName, float width, float height, float length, float diameter, boolean isRoundbale)
Arguments
stringfillTypeNamefill type name
floatwidthbale width
floatheightbale height
floatlengthbale length
floatdiameterbale diameter
booleanisRoundbaleis roundbale
Return Values
stringbaleKeybale key