|Category||Farming Simulator 2013|
|Björn M. (KillaBot)||20.02.2013 18:51|
I'd like to know if there's a variable for the owned fields. I would need it for a script i'm working on atm.
I already found out how to get out if a field is owned by using coordinates, but by using the field number it would be much easier.
thx in advance and greetings
|Alan Verdin (unknown)||25.02.2013 21:19|
|All I know is that it stores the info in the economy file in saved games.
|D. Ecker (Decker_MMIV)||16.03.2013 19:25|
|local fieldNum = ...
local fieldDef = g_currentMission.fieldDefinitionBase.fieldDefsByFieldNumber[fieldNum];
if fieldDef ~= nil and fieldDef.ownedByPlayer == true then
|Björn M. (KillaBot)||22.03.2013 02:10|
|Thanks D.Ecker, will use that for my script. :thumbsUp
Note: Log in to post. Create a new account here.