Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if self.saw.isActive and self.controller == g_currentMission.player and g_gui.currentGui == nil then
- -- Add in to the if statement a way of checking the field has been purchased as to not cut down trees within that field
- if self.saw.fuelFillLevel > 0 then
- if InputBinding.isPressed(InputBinding.SETSAWRUNNING) then
- if not self.saw.isRunning then
- self:setSawIsRunning(true);
- end;
- else
- self:addHelpButtonTextWithCorrectMouseButtons("SETSAWRUNNING", InputBinding.SETSAWRUNNING, "set_saw_running");
- if self.saw.isRunning then
- self:setSawIsRunning(false);
- end;
- end;
- else
- g_currentMission:addExtraPrintText(g_i18n:getText("fillSawInfo"));
- end;
- if InputBinding.isPressed(InputBinding.SETSAWTURNING) then
- if not self.saw.isTurning then
- self:setSawIsTurning(true);
- end;
- else
- self:addHelpButtonTextWithCorrectMouseButtons("SETSAWTURNING", InputBinding.SETSAWTURNING, "turn_saw");
- if self.saw.isTurning then
- self:setSawIsTurning(false);
- end;
- end;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement