Is there a way that I can have the ammo pickup do something when it's picked up?
I have a universal Ammo Box thing, and I wanted it to give me grenades when I picked it up. I tried using the "Death" state with a "A_GiveInventory" but that didn't work. Please help!
DECORATE Problem with Ammo pickups.
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: 12
- Joined: Mon Mar 06, 2017 2:58 pm
- Graphics Processor: Intel (Modern GZDoom)
-
- Posts: 1562
- Joined: Tue Oct 20, 2015 12:50 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Kozolupy, Bohemia
Re: DECORATE Problem with Ammo pickups.
The ammo pickup has to inherit from CustomInventory. Then, you can define the PickUp state. You need to give player the ammo and the grenades in the pickup state.
-
- Posts: 12
- Joined: Mon Mar 06, 2017 2:58 pm
- Graphics Processor: Intel (Modern GZDoom)