SPECIALPICKUP flag

Moderator: GZDoom Developers

Post Reply
User avatar
GhostKillahZero
Posts: 742
Joined: Wed Nov 13, 2013 4:41 pm
Location: 343 Industries Headquarters
Contact:

SPECIALPICKUP flag

Post by GhostKillahZero »

This is similar to SPECTRAL flag whereas things can only pickup items that also has SPECIALPICKPUP flag set.

Edit: I realized there was a typo, sorry about it.
Last edited by GhostKillahZero on Mon Oct 16, 2017 2:41 pm, edited 2 times in total.
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: SPECIALUSE flag

Post by Xaser »

This is the sort of thing you can DIY in ZScript nowadays. Inventory items provide a CanPickup virtual function that can be overridden with custom logic (simply return true if the item is pickuppable, false if not).

A super-quick how-to: create a custom property in the actor that's doing the pickupping, check for it in CanPickup, and you're in business.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”