LuaPlayer::drag_target

Post Reply
Xorimuth
Filter Inserter
Filter Inserter
Posts: 625
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

LuaPlayer::drag_target

Post by Xorimuth »

In my mod (Wire Shortcut X) I want to be able the read whether the player has a drag target (i.e. is dragging a wire/cable from an entity). Personally I don't care what it is, just whether or not it exists. But it should probably return the LuaEntity. I also don't need to be able to write it, since you can create the drag_target with LuaPlayer.drag_wire and clear it with LuaPlayer.clear_cursor. I just need to know if it exists :)
My mods
Content: Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Remote Configuration | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

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

Re: LuaPlayer::drag_target

Post by Rseding91 »

Added for the next release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”