Page 1 of 1

LuaPlayer::drag_target

Posted: Fri Jan 06, 2023 10:50 pm
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 :)

Re: LuaPlayer::drag_target

Posted: Sat Jan 07, 2023 5:48 pm
by Rseding91
Added for the next release.