help for adjusting mass in game

Your forum for all discussions around Modding.
phoque
Posts: 4
Joined: Tue Mar 03, 2020 10:52 pm

help for adjusting mass in game

Post by phoque »

Hello i would like toi add a input to my mod for add mass.

For example the mass of my mod is 1500 perfect for transport,but i want to change is mass in game like that after transport i put it in ground and if a tractor tuch him he dont move.

For example for now i have tried that by using the cover option. :

<animations>
<animation name="toggleCover">
<part node="0>" startTime="0" endTime="0.05" massActive="1500" />
<part node="0>" startTime="0.05" endTime="0.1" massActive="500000" />
</animation>
</animations>

<cover>
<coverConfigurations>
<coverConfiguration>
<cover openAnimation="toggleCover" fillUnitIndices="1" />
</coverConfiguration>
</coverConfigurations>
</cover>

But this doesn't work. Do you know who solve these problem ?

thank you
User avatar
da-hoffi
Posts: 519
Joined: Fri Aug 15, 2014 8:47 am
Contact:

Re: help for adjusting mass in game

Post by da-hoffi »

There are no attributes like massActive/massInactive available for animations as far as I could see it in lua doc.

If I'm not wrong, mass can only be changed via config (objectChange)
Post Reply