Beiträge von borutcebulj

    Hello.


    Let me apologize first that I start this topic in English language, but my German knowledge is a bit rusty.


    I have made an adjustable animated bale forks for my private use, but my knowledge of .lua is not so good.
    I wanna modify the AnimationHandler.lua and the objectAttacherMBH.lua @author Geri-G (edited by PeterJ FS-UK modteam), found can be in this package: http://fs-uk.com/forum/index.php?topic=130148.0.


    The problem with the script is that I do not know how to detach the bale as soon as the animation of the forks is started ... so to be more precise ... if the bale is locked on to forks and the animation is set still then the bale stays locked ... as soon the forks are started to move apart or towards each other the bale must be unlocked.
    I am pretty sure that it must be done in objectAttacherMBH.lua in this part here:


    [lua]if self:getIsActive() and self.isServer then
    if self.animationParts[1].currentPosition > 1001 then
    if self.isBaleAttach == true then
    self:setIsBaleAttached(not self.isBaleAttach);
    end;
    end;
    if self.animationParts[1].currentPosition < 1001 then
    if self.isBaleAttach == false then
    self:setIsBaleAttached(not self.isBaleAttach);
    end;
    end;
    end;[/lua]


    but like I have said Im not much of a scripter. Would appreciate if anyone could help me with this script.


    This will be for my personal use only.

    Hello,


    sorry to write this in english, but my german grammar is bad.


    I have had the same problem with the front lights. When the tractor was without the implements attached, the light goes on and then immediately off. But when I disabled the "fernlicht" everything worked fine.



    Try disabling the "fernlicht" yourself and see if that works for you too.


    I notice then in game that if you turn on the lights, and the "lightStayOn" is set on "true", the real light stays on when you exit the vehicle. In LS11 the script turns off the real light and turns on the beams instead. But this works just fine with work lights.


    Cheers, borutcebulj


    Google translate:
    Ich habe das gleiche Problem mit der Vorderseite leuchtet. Wenn der Traktor ohne die Geräte befestigt war, geht das Licht an und dann sofort aus. Aber wenn ich deaktiviert die "fernlicht" alles geklappt hat.


    Deaktivieren Sie die "fernlicht" sich selbst und sehen, ob das funktioniert auch für Sie.


    Ich merke dann im Spiel, wenn Sie schalten das Licht an, und die "lightStayOn" auf "true" gesetzt, die reale Licht beim Verlassen des Fahrzeugs bleibt. In LS11 das Skript schaltet die reale Licht und schaltet auf den Balken statt. Aber das funktioniert ganz gut mit Arbeit Lichter.


    Mfg, borutcebulj


    Bitte einen antwort gebben!