helppp
2 posts
• Page 1 of 1
helppp
Basically im trying to create a script to where I can only use (button_5) if (button_8) is fully active. this is what I have so far I just have no idea how to structure it into this to where it will function how I would like
- Code: Select all
main{
if(is_active(BUTTON_8)) {
set_val(STICK_2_X, 0);
set_val(STICK_2_Y, 0);
set_val(BUTTON_9, 100);
}
}
-
CzechSniper - Staff Sergeant
- Posts: 11
- Joined: Wed Jun 24, 2020 5:17 am
Re: helppp
Try this:
- Code: Select all
main {
set_val(BUTTON_5, 0);
if(get_actual(BUTTON_8) >= 95f) {
if(is_active(BUTTON_5)) {
set_val(BUTTON_5, 100);
}
}
if(is_active(BUTTON_8)) {
set_val(STICK_2_X, 0);
set_val(STICK_2_Y, 0);
set_val(BUTTON_9, 100);
}
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
2 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: fox5 and 74 guests