Help with code edit
2 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
2 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 68 guests