Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Re: Weapons that cannot be picked up if one already in possession?

$
0
0
With DECORATE, you'd use a CustomInventory so as to run the checks you want and fail so that it doesn't pick up.


With ZScript, you can do that in a weapon, or in any other type of inventory item, by overriding TryPickup() and doing your checks in there.

Statistics: Posted by Gez — Sat Oct 19, 2024 8:00 am



Viewing all articles
Browse latest Browse all 3391

Trending Articles