Help with code edit
3 posts
• Page 1 of 1
Help with code edit
Can anyone make this constant and not have to press a button to activate?
- Code: Select all
#define SENSITIVITY 2.0 main { if (get_val(BUTTON_9)) { set_val(STICK_1_X, clamp(get_val(STICK_1_X) * SENSITIVITY, -100.0, 100.0)); set_val(STICK_1_Y, clamp(get_val(STICK_1_Y) * SENSITIVITY, -100.0, 100.0)); } }
-
Beryl - Sergeant Major of the Army
- Posts: 207
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Help with code edit
your answer is in your question, if you want it to work with out press than the logical thing would be just to remove the button.. right
-
MrBrgv - Sergeant First Class
- Posts: 19
- Joined: Sun Dec 27, 2020 9:32 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 29 guests