More data for on_player_used_capsule

Things that we aren't going to implement
Post Reply
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 449
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

More data for on_player_used_capsule

Post 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!
Don't forget, you're here forever.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: More data for on_player_used_capsule

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”