Auto flashlight script for BF4

I made this for Skullz. I made it easy to combine my script with a different script. Press RT or R2 to fire. When firing flashlight will be on. When not firing flashlight will be off. LEX LOST tested it for me and it worked for him. Please enjoy. -Token
Version1.10
Authortoken
Publish DateTue, 11 Mar 2014 - 02:17
Last UpdateTue, 11 Mar 2014 - 04:21
Downloads60
RATE


0

0

Release Notes: Added comments for the variables.
Code: Select all
int PADUP = 13; // 13 is dpad up. You don't need to use numbers e.g(XB360_A) will work
int RIGHTTRIGGER =4; // 4 is right trigger or R2. You don't need to use numbers e.g(PS4_TRIANGLE) will work
main {
 
        if(event_press(RIGHTTRIGGER) || event_release(RIGHTTRIGGER))  combo_run(LASER); // if TRUE execute combo LASER
 
}
 
combo LASER { // This combo toggles the flashlight
    set_val(PADUP, 100)
    wait(40);
    set_val(PADUP, 0)
}