PR: https://github.com/coelckers/gzdoom/pull/469
This implements WorldThingPrePickedUp and WorldThingPickedUp as events for the Event handlers, however, as pretty much all of the inventory handling is virtualized I was unsure where to place the corresponding functions, so I will leave that up to you.
WorldThingPrePickedUp is right before the item would be going into the inventory. If "shouldpickup" return false in the event, it will be prevented.
WorldThingPrePickedup & WorldThingPickedup (incomplete)
Moderator: GZDoom Developers
-
- Posts: 219
- Joined: Wed Jan 08, 2014 8:40 am
- Graphics Processor: nVidia with Vulkan support
- Location: Germany
Re: WorldThingPrePickedup & WorldThingPickedup (incomplete)
This PR was closed more than a month ago.