Calling A_Lower, etc. from outside the weapon?

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!)
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Calling A_Lower, etc. from outside the weapon?

Post by Matt »

Is it possible to call "action" functions from outside the overlay states?

Like, if I wanted to have an item cause its owner to call A_Raise/A_Lower multiple times to make the owner switch weapons faster, would I be able to do this in the item's DoEffect, and if so what's the syntax for it?

Return to “Scripting”