So I have an armor that grants 100% damage reduction, and gives 150 armor points (BasicArmorPickup)
the problem is that I want the item to get picked up and overwrite a blue-armor. (or any time where the player has 150 or more armor.
The armor will in these cases not get picked up, since the current armorpoints are higher than the new one.
I can force it with a alwayspickup flag, but then it's picked up, but still not applied..
How can I do this? Is the only way to add a script that is ran when the player picks it up that first removes a players armor, then adds the item? hopefully it's possible within the actor-code to make it work
Armor "swap"
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 5032
- Joined: Sun Nov 14, 2010 12:59 am
Re: Armor "swap"
That's what I would do. And, no, you don't need ACS. You can achieve it all in DECORATE, by using CustomInventory.camaxide wrote:How can I do this? Is the only way to add a script that is ran when the player picks it up that first removes a players armor, then adds the item? hopefully it's possible within the actor-code to make it work