Stop a script running on any button pressed?
3 posts
• Page 1 of 1
Stop a script running on any button pressed?
Any easy way that this can be done????
-
kenshyn - Sergeant First Class
- Posts: 25
- Joined: Tue Jun 20, 2017 11:03 pm
Re: Stop a script running on any button pressed?
You can run a loop to check if a button is pressed:
- Code: Select all
main {
uint8 i = 0;
do {
if(is_active(i)) {
// stop script stuff here
}
} while (++i < 20);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
Re: Stop a script running on any button pressed?
Thank you!!!!!
-
kenshyn - Sergeant First Class
- Posts: 25
- Joined: Tue Jun 20, 2017 11:03 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 133 guests