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
inventory.SpecialDropAction() doesn't get called
Moderator: GZDoom Developers
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.
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.
-
- Posts: 537
- Joined: Wed Dec 22, 2021 7:02 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Medellin, Colombia
-
- Posts: 256
- Joined: Mon Jan 09, 2023 2:02 am
- Graphics Processor: nVidia (Modern GZDoom)
Re: inventory.SpecialDropAction() doesn't get called
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.
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.
-
- Posts: 537
- Joined: Wed Dec 22, 2021 7:02 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Medellin, Colombia
Re: inventory.SpecialDropAction() doesn't get called
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.