is_release is not working!
4 posts
• Page 1 of 1
is_release is not working!
- Code: Select all
main {
if(get_actual(BUTTON_8) && time_active(BUTTON_8) > 320){
if(is_release(STICK_1_X) || is_release(STICK_1_Y)){
set_val(BUTTON_9, 100.0);
}
}
}
is_release isn't working correctly when dragging up or down right or left but does work on angles!
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: is_release is not working!
For what you are trying to achieve the conditional operation should be AND (not OR), example:
- Code: Select all
main {
if(get_actual(BUTTON_8) && time_active(BUTTON_8) > 320){
if(is_release(STICK_1_X) && is_release(STICK_1_Y)){
set_val(BUTTON_9, 100.0);
}
}
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: is_release is not working!
working like it should....Thanks! I thought you could do either or and it should of worked. Guess not!
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: is_release is not working!
bonefisher wrote::smile0517: working like it should....Thanks! I thought you could do either or and it should of worked. Guess not!
Alternatively.
- Code: Select all
if(!(is_active(STICK_1_X) || is_active(STICK_1_Y))){
-
DontAtMe - Captain
- Posts: 502
- Joined: Tue Oct 02, 2018 4:49 am
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 109 guests