function AILexion600Combine:getSaveAttributesAndNodes(nodeIdent) local attributes if self.aiThreshingDirectionX and self.aiThreshingDirectionZ then attributes = 'lastDirection="'..self.aiThreshingDirectionX..' 0 '..self.aiThreshingDirectionZ..'" ' end return attributes end; function AILexion600Combine:loadFromAttributesAndNodes(xmlFile, key, resetVehicles) local x,y,z = Utils.getVectorFromString(getXMLString(xmlFile, key.."#lastDirection")); if x and z then self.aiThreshingDirectionX = x self.aiThreshingDirectionZ = z end end