J'ai ajouté des lumières aux bâtiments de ma map avec les interrupteurs en provenance de ce pack mais ingame je n'ai pas le son de l'interrupteur alors que la lumière elle fonctionne très bien. Par contre quand j'importe des bâtiments qui ont déjà les lumières intégrés (Tunnel Beiser de BlackSheep Modding par exemple) là j'ai bien le son. Mais si je duplique l’interrupteur pour le mettre sur un autre bâtiment pas de son.
Voici la partie de l'animatedObjects.xml où je n'ai pas de son.
Code: Select all
<animatedObject index="lightCompost">
<controls posKey="LIGHTSWITCH_CLICK" triggerNode="0" posText="input_LIGHTSWITCH_CLICK" negText="input_LIGHTSWITCH_CLICK" />
<sound file="maps/Sound/switch01_0.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="0.5">
<part node="1|0"> <!--index of Lever of the Lightswitch-->
<keyFrame time="0.00" rotation="0 0 0" />
<keyFrame time="1" rotation="0 0 -8" />
</part>
<part node="2|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="3|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="4|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="5|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="6|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="7|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="8|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
<part node="9|0"> <!--index of TG with realLights and emmisive shape-->
<keyFrame time="0.5" visibility="false" />
<keyFrame time="0.55" visibility="true" />
</part>
</animation>
</animatedObject>