ACS zspecials.acs parameter numbers

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
Enjay
 
 
Posts: 26835
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

ACS zspecials.acs parameter numbers

Post by Enjay »

I know that I probably should know this already but, in zspecials.acs what does it mean when a special is defined like this:

Code: Select all

206:Plat_DownWaitUpStayLip(4,5),
versus

Code: Select all

205:Generic_Crusher(5),
:?:

The part that I mean is how the first one has two numbers: (4,5) versus the second one having only one number: (5).

I *think* it means that the fist one will accept 4 or 5 arguments when the script is compiled whereas the second needs exactly 5. Is that correct?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49204
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ACS zspecials.acs parameter numbers

Post by Graf Zahl »

Yes, that's correct. Some specials got parameters added later. These need to be optional.
User avatar
Enjay
 
 
Posts: 26835
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: ACS zspecials.acs parameter numbers

Post by Enjay »

I thought that might be the reason. Thanks for confirming.

Return to “Scripting”