Beschreibung

LS22 ToggleAnimations v1.0.0.1

Script zum Ausführen von Animationen per Tastendruck

Mit diesem script lassen sich in der xml definierte <animation>’s per Tastendruck abspielen.

Einbau

modDesc:

<specializations>
<specialization name="toggleAnimation" className="toggleAnimation" filename="toggleAnimation.lua"/>
</specializations>

<vehicleTypes>
<type name="YOUR VEHICLE TYPE" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua" parent="CHECK WHAT'S SUITABLE FOR YOUR MOD">
<specialization name="toggleAnimation" />
</type>
</vehicleTypes>

<actions>
<action name="TA_amim1" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim2" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim3" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim4" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim5" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim6" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim7" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim8" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim9" category="VEHICLE" axisType="HALF"/>
<action name="TA_amim10" category="VEHICLE" axisType="HALF"/>
</actions>

<!-- here you change the button to use -->
<inputBinding>
<actionBinding action="TA_amim1">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_t" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim2">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_y" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim3">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_g" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim4">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_h" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim5">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_a" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim6">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_b" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim7">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_c" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim8">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_d" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim9">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_e" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
<actionBinding action="TA_amim10">
<binding device="KB_MOUSE_DEFAULT" input="KEY_lctrl KEY_f" axisComponent="+" neutralInput="0" index="1"/>
</actionBinding>
</inputBinding>

<l10n>
<text name="input_TA_amim1">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim2">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim3">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim4">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim5">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim6">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim7">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim8">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim9">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
<text name="input_TA_amim110">
<en>Description of action</en>
<de>Beschreibung der Aktion</de>
</text>
</l10n>

XML:

<toggleAnimation anim1="name of your animation1" anim2="name of your animation2" anim3="name of your animation3" anim4="name of your animation4" anim5="name of your animation5" anim6="name of your animation6" anim7="name of your animation7" anim8="name of your animation8" anim9="name of your animation9" anim10="name of your animation10"/>

Version 1.0.0.1

Problem mit nicht mehr funktionierendem MausControl wurde behoben
Typo in anim5 behoben
generelle Typos behoben –> evtl. müssen deshalb die alten Einträge in der inputBindings.xml gelöscht werden

Credits

HoFFi