Help with this script please
3 posts
• Page 1 of 1
Help with this script please
Can someone add a command into this so itl only activate on LT activation?
So when i press the LT i can use the action below? Iv figured out how to edit it but just need to only activate on LT press
main { if (get_actual(STICK_2_Y) == -100.0) set_val(BUTTON_9,100); }
So when i press the LT i can use the action below? Iv figured out how to edit it but just need to only activate on LT press
main { if (get_actual(STICK_2_Y) == -100.0) set_val(BUTTON_9,100); }
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
Re: Help with this script please
not sure if this is what you are asking for:
potential issue with this is the button_9 press not being registered by the game as it may be pressed for a time too short.
to fix this use a combo for the BUTTON_9 press instead of the set_val directly
- Code: Select all
main { if (get_actual(STICK_2_Y) == -100.0 && event_active(BUTTON_8)) set_val(BUTTON_9,100); }
potential issue with this is the button_9 press not being registered by the game as it may be pressed for a time too short.
to fix this use a combo for the BUTTON_9 press instead of the set_val directly
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Help with this script please
Thanks for your help! What id been using it for was to use the left analog down press to crouch as i figured out how to change the inputs just adding the event was beyond me ha!
This will hopefully give me the option to spam crouch when i ads! Thanks for your help
This will hopefully give me the option to spam crouch when i ads! Thanks for your help
-
Beryl - Sergeant Major of the Army
- Posts: 198
- Joined: Fri Nov 27, 2020 7:47 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 197 guests