CustomInventory Executing ACS On Pickup + A_RadiusGive?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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!)
Post Reply
heehoo
Posts: 24
Joined: Mon Nov 06, 2017 6:20 am

CustomInventory Executing ACS On Pickup + A_RadiusGive?

Post by heehoo »

I've got a custominventory item that, in its pickup state, uses ACS_NamedExecute to execute a script for the calling actor. These items are given out to monsters by a usable item which uses A_RadiusGive (no filter for class/species, no mindist or limit). The problem is that, when the items are received, the script goes off for only ONE monster, instead of all monsters within the radius. The other stuff in the pickup state works on ALL of the monsters, and all of the ACS commands only reference the calling actor like I said (i.e TID is 0), so what gives?
User avatar
Cherno
Posts: 1337
Joined: Tue Dec 06, 2016 11:25 am

Re: CustomInventory Executing ACS On Pickup + A_RadiusGive?

Post by Cherno »

Perhaps you need to use ACS_NamedExecuteAlways?
heehoo
Posts: 24
Joined: Mon Nov 06, 2017 6:20 am

Re: CustomInventory Executing ACS On Pickup + A_RadiusGive?

Post by heehoo »

Cherno wrote:Perhaps you need to use ACS_NamedExecuteAlways?
WOW I'm an idiot. Yep, that makes it work. Thank you :lol:
User avatar
Cherno
Posts: 1337
Joined: Tue Dec 06, 2016 11:25 am

Re: CustomInventory Executing ACS On Pickup + A_RadiusGive?

Post by Cherno »

Glad to be of help :)
Post Reply

Return to “Scripting”