COMMUNITY FORUM

Play animation when using an attacherJoint

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created11.05.2020 06:09


David Fructuoso (pZonaKo) 11.05.2020 06:09
Hi there!

Is there a code or function that allows me to execute an animation when an implement is connected to the tractor? for an example, a bracket that is folded and when the implement connects it moves to show a part locking the implement.

Thanks!

Lorenzos (lorenzoita) 11.05.2020 09:49
In <attachable> tags you can add <support animationName=" {animationName}" />. In this way when the implement get attached to the tractor the animation will be played, the same thing happened when you detach the implement but the animation will be played in reverse.

David Fructuoso (pZonaKo) 11.05.2020 16:16
The tractor does not have the attachable class since it's not an implement.

I have an AttacherJoint created when selecting a configuration inside the <frontloaderconfiguration>

I have a part that's folded and I want it to unfold when the attacherjoint is used

Lorenzos (lorenzoita) 11.05.2020 16:29
Oh, ok. I misunderstood. I thought you were talking of an implement.

I'm not sure you can play an animation, but you can modify the visibility, position, rotation and scale of the mesh with <objectChange>:

<objectChange node=" " visibilityActive="true" visibilityInactive="false"/>
<objectChange node=" " rotationActive="0 0 0" rotationInactive="0 0 0"/>
<objectChange node=" " translationActive="0 0 0" translationInactive="0 0 0"/>
<objectChange node=" " scaleActive="1 1 1" scaleInactive="1 1 1"/>

David Fructuoso (pZonaKo) 12.05.2020 06:43
I have tried and what happens is that the object changes lines are executed in the store while selecting the options, not when the implement attaches

Lorenzos (lorenzoita) 12.05.2020 08:03
That's right, my bad. Just move them into the attacherJoint


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