[Question] Why?...
3 posts
• Page 1 of 1
[Question] Why?...
Can someone explain to me why you have to set the value to zero twice on a rapidfire script? For Example:
What is the Purpose/Benefit of doing this?
- Code: Select all
combo RapidFire {
set_val(FIRE_BUTTON, 100);
wait(40);
set_val(FIRE_BUTTON, 0);
wait(30);
set_val(FIRE_BUTTON, 0);
}
What is the Purpose/Benefit of doing this?
-
ShortEssay - Sergeant First Class
- Posts: 20
- Joined: Tue Apr 04, 2017 12:53 am
Re: [Question] Why?...
It is not mandatory but it is an optimization to be sure the combos stop/restart correctly.
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3251
- Joined: Sun Dec 16, 2012 1:43 pm
Re: [Question] Why?...
complementing prototype's reply. After the last wait statement there is a 10ms required to "finish" the combo. Adding the set_val() there ensures the button will have a know value for that period. this also explains why you have 40 and 30 in the waits, which results in an even 40/40 Rapidfire.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
3 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 77 guests