Page 1 of 1

More data for on_player_used_capsule

Posted: Mon Jan 13, 2020 9:32 pm
by raiguard
I am abusing capsules to make click-and-drag functionality for some of my mods. Right now, I am only limited to one function per capsule: left-click and drag. However, there are tons of things I want to do with capsules, that can only be accomplished with more kinds of interaction.

So would it be possible to include alt, shift, and control parameters in the event table, similar to on_gui_click? That way I could do different things depending on what the player has held down when the capsule is thrown. I realize that this isn't what capsules are normally meant for, but there is no other solution to click-and-drag that I know of.

Thanks in advance!

Re: More data for on_player_used_capsule

Posted: Tue Jan 14, 2020 4:23 am
by Rseding91
None of that information is captured in the input action that's used for capsules so it's not available to send in the event.