Community Forum

Read/Set fruit price (sell)

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created04.01.2010 12:32


Andreas GroƟschedl (unknown) 04.01.2010 12:34
Hi!

Is it possible to read out the fruit price (port,mill,brewery and other tiptriggers) and to set them? And how?

thx
Andreas

Christian S (unknown) 06.01.2010 15:45
There are some Price multipliers in each Trigger
sample code:

for k,v in pairs(g_currentMission.tipTriggers) do
for a,b in pairs(v.priceMultipliers) do
local price = Utils.getNoNil(FruitUtil.fruitIndexToDesc[a].pricePerLiter,0);
end;
end;

hope that works

best regards
Christian


Note: Log in to post. Create a new account here.