Drop() doesn't work when an item is held (with the mouse)
I'm trying to drop an item via script, but it doesn't work when the PC helds it in it's hands (not equipped). Here's the code snippet
if ( player->GetEffect sEffectCharm == 0 ) ; gets true when the item is unequipped player->Drop foo 1 endif
What happens here is, that - although foo is dropped by the script - the items icon still sticks on the mouse pointer until you click into the inventory window. I'd assume that Drop() means: drop it right before the next frame. If an item is dropped here - only when the player does an action (like click on the ground) in order to make the item be dropped - Drop() is useless.
Bug confirmed: https://forum.openmw.org/viewtopic.php?f=2&t=3258&p=36286#p36286
(RM-3097 from redmine: created on 2015-12-20 by Who Knows, , closed on 2017-09-28 by scrawl .)
Edited by redmine