Scripting error

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
Beetow Brode
Posts: 69
Joined: Sat Sep 24, 2016 1:46 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: "We've Got Hostiles"

Scripting error

Post by Beetow Brode »

I think I'm calling the wrong thing by adding to == and for some reason it screws it up it says Identifier has not been declared.

Code: Select all

script 2 (void) {
	Print (s: "if you would like to skip this map press (ALTATTACK)");
	delay(60);
	GetPlayerInput(-1,INPUT_BUTTONS);
	if (buttons == BT_ALTATTACK) {
	Exit_Normal(0);
}
}
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: Scripting error

Post by m8f »

It should be

Code: Select all

int buttons = GetPlayerInput(-1, INPUT_BUTTONS); 

Return to “Scripting”