inventory.SpecialDropAction() doesn't get called

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: inventory.SpecialDropAction() doesn't get called

Re: inventory.SpecialDropAction() doesn't get called

by Sir Robin » Mon Nov 13, 2023 1:17 am

Ah, ok. I was looking for a function that is called when a player does InvDrop on an artifact in the inventory bar. So this is not that. I've been told I can override CreateTossable() to get what I'm looking for.

Re: inventory.SpecialDropAction() doesn't get called

by Professor Hastig » Mon Nov 13, 2023 12:15 am

Oh, it does get called, just look for A_DropItem.

What are you trying to do? From a look at the code all this function seems to be doing is to run a special action instead of dropping the item if it is being used as an enemy drop on death.
Looking deeper, this is to support some Strife hacks that let enemies drop some special 'action' items from a conversation script that trigger map actions, like opening a door or raising the alarm, etc.

inventory.SpecialDropAction() doesn't get called

by Sir Robin » Sun Nov 12, 2023 7:09 pm

From the code comments I thought this function is called before a drop and can abort the drop with it's return, but it never gets called.
I asked about it in scripting and was told to report it.
Original thread with example

Top