Triggering an action with a keybind

Your forum for all discussions around Modding.
Drmattymd
Posts: 792
Joined: Sun Oct 30, 2016 3:54 pm
Location: VA, USA

Triggering an action with a keybind

Post by Drmattymd »

If I want an action to happen when pushing a button, is that defined in the xml or does it require LUA? I'm not talking about just reassigning the keybind, I mean actually adding an action and a corresponding keystroke
Playing on PC and PS4
s8080t
Posts: 712
Joined: Wed Nov 20, 2019 9:26 pm

Re: Triggering an action with a keybind

Post by s8080t »

Highly depends on what this action might be.

Usually the actions are tied to a specialization (turn something on/off, play an animation/move something, etc.) and most of the time the corresponding tool needs to be attached to a drivable and selected or the player/vehicle needs to "touch" a trigger.
Languages: DE/EN
Plattform: PC
Meine Mods
Grünlandsuchti
IT-Spezialexperte
OpenSource-Verfechter
Drmattymd
Posts: 792
Joined: Sun Oct 30, 2016 3:54 pm
Location: VA, USA

Re: Triggering an action with a keybind

Post by Drmattymd »

Ok, it is a vehicle or implement function that currently is not a part of the mod. Its something I'm trying to add
Playing on PC and PS4
Drmattymd
Posts: 792
Joined: Sun Oct 30, 2016 3:54 pm
Location: VA, USA

Re: Triggering an action with a keybind

Post by Drmattymd »

I guess what I want to do is assign a specific animation to a key command
Playing on PC and PS4
s8080t
Posts: 712
Joined: Wed Nov 20, 2019 9:26 pm

Re: Triggering an action with a keybind

Post by s8080t »

Sounds like you'd want to have a look at SimpleIC.
Languages: DE/EN
Plattform: PC
Meine Mods
Grünlandsuchti
IT-Spezialexperte
OpenSource-Verfechter
Post Reply