by XxMiltenXx » Fri Apr 27, 2018 11:15 am
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.
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.